3 ms·
Compile times have greatly improved over the last few years. And if you aren't importing 100+ dependencies from Cargo.toml or using a lot of templates/traits (w
by queuebert 3y ago
Compile times have greatly improved over the last few years. And if you aren't importing 100+ dependencies from Cargo.toml or using a lot of templates/traits (which I suspect kernel code won't), then it's even better.
Edit: Also kernel compile times are a problem for the elite few, while kernel bugs are a problem for everyone.
- NewJazz 3y agoAren't common libraries like serde and clap known to slow down compile times?
- sodality2 3y agoYes, but Rust for Linux won’t be using these kinds of dependencies.
- NewJazz 3y agoThat's a good point. Rust in the Kernel is different from the general ecosystem.
- vlovich123 3y agoThe first time you build, sure but that’s true for C/C++ applications too (boost command_line or applications with lots of protobufs). Overall my experience that build times on Rust are waaaaaay better than C++ all things being equal (i.e. similar level of features). And honestly the developer experience of clap I’ve found to be a lot faster to work with than equivalent libraries in TypeScript which is saying something considering the typing on Rust is a lot more strict and cumbersome to work with.
- junon 3y agoYes, but not substantially - at least in comparison to *-sys crates which (surprise!) compile C/C++ most of the time.