3 ms·
> * Rust compiling too slowly is just an attribute of its current implementation — there's nothing about the language itself that makes it any slower at compila
by johnfn 6y ago
> * Rust compiling too slowly is just an attribute of its current implementation — there's nothing about the language itself that makes it any slower at compilation than, say, C++.
Two points here. One, a comparison to C++ is a little disingenuous because C++ is notorious for slow compile times already. Two, it’s not really accurate to say that Rusts compile time is an implementation detail. In fact, many times over the lifetime of Rust the Rust developers have traded off compile time for particular features that they wanted to add. Compare this to, say, Go, which refuses to add any feature without a serious consideration of compile time impact. Sure, the current implementation could be sped up - but it certainly wasn’t designed to be.
- creata 6y ago"Disingenuous" is a little mean. Maybe we just have different standards of compilation speed? You're right — Rust could be a totally different language and get compile time speeds like Go. But that doesn't change the fact that much of the problems with Rust's compile times are a result of its packaging system and compiler, rather than intrinsic to the language.
- johnfn 6y agoYeah my mistake. Disingenuous meant something different than I thought. “Unfair” perhaps, but I don’t think you have any hidden motives here ;-)