← Back to context

Comment by kibwen

3 days ago

You can absolutely do the same things in Rust, it's just that the culture and tooling of Rust encourages much larger compilation units than in C or C++, so you don't get the same sort of best-case nontrivial embarrassing-parallelism, forcing the compiler to do more work to parallelize.

To address the tooling pressure, I would like to see Cargo support first-class internal-only crates, thereby deconflating the crate as what is today both the unit of compilation and the unit of distribution.

You certainly cannot distribute binary libraries, including pre-expanded templates for common use cases.

Which is always my standard approach to fast build times in C++ projects.