logoalt Hacker News

nylonstrungtoday at 3:46 AM1 replyview on HN

It's less that the error messages are just "good" with Rust, it's that more stuff gets caught at comptime, and many of them can be autoremediated by cargo fix or the compiler itself says exactly what should be changed.

Nothing costs more tokens than an LLM trying to debug errors caused at runtime which doesn't map well to it's "intelligence" compared to what Rust provides


Replies

bensyversontoday at 1:57 PM

Unless you have `cargo fix` hooked up to automatically run on any compiler error, every error is still is a round trip to the LLM. It may be trivial for the model to fix, but it's added latency and cost.