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

Rust

5651 readers
15 users here now

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

Wormhole

[email protected]

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
[–] taladar 0 points 1 month ago* (last edited 1 month ago) (1 children)

If the iPhone had been hyped like AI is today people would have claimed you could replace your hammer, saw, garden hose and cooking utensils with an iPhone.

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.

[–] [email protected] 2 points 1 month 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).