this post was submitted on 11 Jul 2024
25 points (96.3% liked)

Rust

5980 readers
115 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FizzyOrange@programming.dev 2 points 4 months ago

Meanwhile current AI is pretty much useless for any purpose where you actually need to rely on a decent chance to get quality results without human review.

Sure but there are tons of applications where you can tolerate lower than human levels of performance.

The amount of time ChatGPT has saved me programming is crazy, even though it struggles with more complex or niche tasks.

Here's what I used it for most recently:

Write an HTML page that consists of a tree of elements with interspersed text. These are log files with expandable sections. The sections can be nested.

The difficult part is I want the text content that is stored in the HTML file to be compressed with zlib and base64 encoded. It should be decompressed and inserted into the DOM once when each DOM node first becomes visible.

Be terse. Write high quality code with jsdoc type annotations.

It write a couple of hundred lines of code that was not perfect but took 5 minutes to fix. Probably saved me an hour writing it from scratch (I'm not a web dev so I'd have to look things up).