News for hackers. Stuff that matters.
Re:A Few More Reasons Rust Compiles Slowly by Elinvynia on Monday June 29, 2020 @03:56PM (#23681905)
With Rust you get safety at compile time while avoiding memory safety issues at runtime. The compile times are objectively longer compared to most other languages. But whether this trade-off is worth it for you depends a lot on your company's CI pipeline and the skill of the developers.
Re:A Few More Reasons Rust Compiles Slowly by verdagon on Monday June 29, 2020 @06:29PM (#23684133)
I'm not sure safety has anything to do with long compile times, can you enlighten?
Re:A Few More Reasons Rust Compiles Slowly by efnx on Monday June 29, 2020 @10:43PM (#23685948)
There’s a lot happening at compile time that less safe languages don’t do. Type checking and type erasure, etc
Re:A Few More Reasons Rust Compiles Slowly by int_19h on Monday June 29, 2020 @11:22PM (#23686191)
As the article explains, this all is a relatively minor contribution to compile times.
Re:A Few More Reasons Rust Compiles Slowly by pjmlp on Tuesday June 30, 2020 @02:55AM (#23687392)
Ada/SPARK does it.
Re:A Few More Reasons Rust Compiles Slowly by verdagon on Tuesday June 30, 2020 @03:55AM (#23687762)
IIRC, languages like Java and Go compile quite fast, and they are even safer than Rust...
Re:A Few More Reasons Rust Compiles Slowly by Gibbon1 on Monday June 29, 2020 @04:47PM (#23682785)
I feel like the long compilation times is going to be a show stopper for smaller teams/companies where you can't afford the loss in productivity.
Re:A Few More Reasons Rust Compiles Slowly by efnx on Monday June 29, 2020 @10:46PM (#23685963)
Anecdotally I can tell you it does not amount to a loss in productivity. Cargo caches built deps so the cost is really only paid once in a while and the advantages of rusts type system are a boon to productivity.
Re:A Few More Reasons Rust Compiles Slowly by lmm on Tuesday June 30, 2020 @01:53AM (#23687010)
If productivity is important, you really can't afford memory corruption bugs. Those can easily take weeks to hunt down.
Re:A Few More Reasons Rust Compiles Slowly by pdimitar on Tuesday June 30, 2020 @09:39AM (#23689851)
It can be slightly annoying -- compared to f.ex. OCaml with its lightning-fast compiler -- but in practice incremental recompilation is much faster than a compilation from scratch so it rarely irks me that badly.