3 ms·
> Also note that D, a language as complex as C++ While D is complex, it's a different beast than Rust. I suspect think various checks, from lifetime to trait r
by Ygg2 2y ago
> Also note that D, a language as complex as C++
While D is complex, it's a different beast than Rust. I suspect think various checks, from lifetime to trait resolution, might make it more complex to parallelize than C++.
- steveklabnik 2y agoRust is already able to do more fine-grained parallel compilation than C or C++, at least in the codegen step. The "codegen units" concept doesn't work for those languages.
- wahern 2y ago> The "codegen units" concept doesn't work for those languages. Sure it does. Or at least could, depending on what you mean by that term. See, e.g., GCC's -flto-partition option, which supports various partitioning strategies for parallel LTO codegen.
- steveklabnik 2y agoLTO is distinct, and happens after what codegen units does. That said, it is a more fine grained parallelism, for sure. Rust does LTO as well as codegen-units. Really, as you gesture towards, on some level, this is all semantics: our linkers are also basically compilers too, at this point.