3 ms·
>Rust is perfect for writing all of code using LLM. Rust is a terrible language for using LLMs to write code if Rust's low latency isn't needed, because of its
by logicchains 5mo ago
>Rust is perfect for writing all of code using LLM.
Rust is a terrible language for using LLMs to write code if Rust's low latency isn't needed, because of its extreme compile times. LLMs code faster than humans so a far bigger fraction of the time is spent waiting for the compiler, and a reasonably sized project will take literally 10x longer to compile in Rust than in e.g. Zig or Go.
- metasim 5mo agoIn my experience with Claude Code, it writes most of the code, including tests, without invoking the compiler until the very end (almost like a spelling checker). Rarely are there any compilation problems, and when there are, it’s often a token issue like a missing brace. I hypothesize this is possible because of the robust invariants of the language itself, and its strong types, such that the LLM can encode deeper meaning in fewer tokens. Also remember, `cargo check` is quite fast, and wholly sufficient for confirming correctness.