miniblog.

← Back to all posts
45
It's weird to me that so many folks think Rust is the sweet spot for LLMs. It's not the only language with a strong type system, or an extensive set of linters, or a decent size ecosystem. Rust certainly has a bunch of strengths, but which of those are relevant for agents?

5 Comments

@wilfredh just by testing with my local Qwen model it seems that it is largely the quality of the compiler errors. But there's a danger in that as well with weaker models, it sometimes starts to use the compiler as an oracle. If that happens things go downhill fast. But I think that's it.
@wilfredh (I am not an LLM user so this is not backed by first-hand experience) It seems to me that lots of people are having a good experience with swift. Shares a lot of similarities with Rust, strong type system, lots of compile-time error checking. I suspect that the compiler is slower, though, and that probably hurts feedback loops.
@wilfredh Rust has (a reputation of) costing more to write for higher quality output binaries, while also unlike other languages with that reputation having the property that a monkey (/AI) on the keyboard won’t produce memory vulnerabilities.