Comment by elvin_d

5 months ago

I’m glad not completely off with my bet 5 years ago that Rust will get larger chunk of the market. With the spread of AI Rust feels like a good candidate among Typescript and Python giants in a an era of coding assistant tools that needs a good nudge like Rust compiler.

As a counterpoint, Rust is one of the languages that AI is worst at writing - currently, at least.

Perhaps there could be a future where the compiler/checker will be able to integrate more closely with whichever agent is attempting to write Rust - more closely than the current paradigm, where a hapless Claude repeatedly bashes its head into the borrow checker to no avail.

  • I think I disagree with this sentiment. I’ve found AI to be poor at one-shotting rust but give it a short agentic loop running `cargo check` and it can often produce code more solid than that created with a dynamically typed language.

    • And when it does finally make something that works in Rust, its admittedly far more trustworthy than AI code in other languages. It does struggle a lot though.

  • > Rust is one of the languages that AI is worst at writing - currently, at least

    Everyone makes similar statements about AI, Ai is currently bad at this or that. I find it quite good to write Rust. Can you give a concrete example of what AI failed to write for you