2 ms·
There's a lot of things you can do in C++ to reduce compilation time if you care about it, that aren't possible with Rust.
by logicchains 1y ago
There's a lot of things you can do in C++ to reduce compilation time if you care about it, that aren't possible with Rust.
- MeetingsBrowser 1y agoThere are things you can do for Rust if it really is a deal breaker. Dioxus has a hot reload system. Some rust game engines have done similar things.
- jplusequalt 1y agoWhen in doubt, manually patch your dll's
- kibwen 1y agoYou 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.
- pjmlp 1y agoYou 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.