Hacker News new | ask | show | jobs
by bestouff 23 days ago
This. Since Rust C++ has lost it's appeal for me. It used to have the good balance of performance/effort, but nowadays I wouldn't dare starting a new project using C++. Even LLMs are way better at coding in Rust.
2 comments

I found the last part to be true for me as well, LLMs are pretty bad at writing C++ compared to Rust and Python. I believe their proficiency in the latter is due to an abundance of training data while their proficiency in the former is due to the language being "built" to reduce errors.
Not a troll question, because I am thinking of starting a fairly chunky project in Rust, potentially around 500k LOC. Are compile times really as bad as people suggest, in Rust? I'll be going agentic development, so it will be iterating a lot.
Not an empirical sample but I have project in C++ that I tried rewriting in Rust and I'm very annoyed by the long compilation times. Just my personal experience.
Honestly, coming from C++, Rust seems to compile very very fast. Those who complain about compile times usually come from Go, whose compiler, to be fair, barely needs to parse the code to call it a day. Or from interpreted languages where you don't have to wait at all. But in general, the Rust compiler is quite fast for what it does. If you have a 500kLoC project though, of course it is recommended to split it up into different crates (where it makes sense logically), to speed up even further.