7 ms·
Rust is a fantastic language to emit from AI. Studies report that the language design tends to result in lower defect code (vs peers such as Go and Java) due t
by echelon 6mo ago
Rust is a fantastic language to emit from AI.
Studies report that the language design tends to result in lower defect code (vs peers such as Go and Java) due to how the syntax aids error handling, logic flow, and API design.
You don't need to know Rust to begin using it. You'll learn it quickly enough.
The code is easy to read, and Serde makes parsing, especially JSON, extremely pleasant. Writing HTTP services is a breeze.
AI makes Rust development go 10x faster. The borrow checker isn't even an issue. It's invisible now. You almost never hit it anyway when you write web services, but now it's no issue at all when writing highly concurrent code too. Claude etc. emit the correct code and lifetimes, and it's entirely ergonomic and idiomatic.
The biggest problem with Rust is the compile time.
- oblio 6mo ago> AI makes Rust development go 10x faster. The borrow checker isn't even an issue. It's invisible now. What happens when things break and the AI agent can't fix it?
- jmalicki 6mo agoThat would be bad, which is why Rust is preferred to python. In Rust when things break the AI gets a clear error message that makes it clear how to fix. In Python when things break, the AI will randomly spin its wheels for days trying different things without being able root cause the issue. A failure to compile is by far the easiest thing for the AI to fix.
- echelon 6mo agoYou'll learn Rust faster with AI and should be able to solve it yourself. You're unlikely to wind up in such a situation though. The design work Claude does in Rust is really sensible and idiomatic, and I really don't think you'll be unable to refactor or redesign things. Claude is extremely good with Rust generation, refactoring, and manipulation. I'll go as far as to say that AI has removed most of the complaints people had with learning or using Rust. It's not even a speed bump now.
- therouwboat 6mo agoCome on now, how do you learn anything if you just tell claude to do something and feed it error messages?
- Yokohiii 6mo agoYeah, I don't think you really learn a language with agentic coding, at least you wont become fluent writing it. I currently use copy pasta chatbot help to write some C code and I am still often stuck how to progress manually. And I refactor a lot because the LLM code is subpar for me.
- echelon 6mo ago> Yeah, I don't think you really learn a language with agentic coding > [...] > And I refactor a lot because the LLM code is subpar for me. This is learning.
- Yokohiii 6mo ago> Yeah, I don't think you really learn a language with agentic coding, at least you wont become fluent writing it. Don't misquote me for your agenda. It's a statement about the quality of learning.
- echelon 6mo agoI'm presuming you don't like AI (apologies if I'm mistaken). Just because someone doesn't like some tool doesn't mean someone can't learn using the new tool or method. Users of an old technology often adopt a hostile disposition of a new technology that threatens their skill. To claim people can't learn at a higher level of abstraction is absurd. Kids with motivation are smart, and they will outpace the older generation. If I had the advantage of LLMs and agentic coding when I was a teenager, I could have gone wider and deeper in my career. I'm jealous that young learners are going to be able to do more than I could at their age. I'm happy for them. If you're using AI to vibe code, then editing the results - that's learning. Period. That's a feedback loop. And it's probably more interesting and rewarding than what we had.
- joaohaas 6mo agoWhat study? And I don't see how Go design patterns would be any worse. The main issue people have with it is the repetition/verbosity, which LLMs handle just fine.
- ModernMech 6mo agoThe repetition and verbosity makes it more expensive for the LLM to write. You'd want a language that is expressive and dense if you're optimizing for token usage.
- bombcar 6mo agoAPL would seem to be perfect!