|
|
|
|
|
by nbardy
23 days ago
|
|
Can anyone who knows Rust well explain why its so good for AI? It seems like the AI can really write safe types and fast, efficient code in rust that beats anything else. I've moved basically all my projects over to it. And I don't really know how it compares to other fast languages. My personal langue preference was always for readable languages like Clojure or Ruby, but at this point I'm not reading any code and just want performance. |
|
With agentic programming, (i) is a non-issue since LLMs have a very good grasp of the language, and it's no skin of your back, the agent is sweating it out with the compiler, not you, and (ii) is likely something you actually want.
I suspect it comes down to which other ecosystem you are coming from:
Python -> Rust: massive performance gains, type safety, much better concurrency
C++ -> Rust: much much better memory safety, much nicer compiler errors and warnings
Java -> Rust: better memory utilisation, non-null-able types (though I think recent Java versions facilitate this), better performance
But there are other language ecosystems where the gains become more subjective.
For eg. Golang -> Rust, I'd argue better "correctness", especially when concurrency is involved, but it's less pronounced than some of the other paths I mentioned above.