2 ms·
> Compilation is inherently pretty hard to parallelise I don't agree. In a large project there is going to be a lot of stuff that can be compiled in parallel w
by amelius 2y ago
> Compilation is inherently pretty hard to parallelise
I don't agree. In a large project there is going to be a lot of stuff that can be compiled in parallel without problems.
- swiftcoder 2y agoAnd Rust's module design makes this significantly more complicated than in superficially-similar languages. That's why splitting it into modules brings drastic improvements - you are effectively giving the compiler clear boundaries across which it doesn't need to propagate as much information.
- steveklabnik 2y agoSplitting it into crates, not modules.
- swiftcoder 2y agoYeah, my bad. I do think this terminology drives some confusion, honestly, since neither "module" nor "crate" is a very portable term to other languages' compilation schemes.
- steveklabnik 2y agoIt's all good! I agree it's frustrating. I also think it's kind of why people get confused by Rust's module system; they assume that it works like the module system of whatever language they're coming from. But they all work differently!