Re:Rust in Linux kernel is just a beginning
by asoneth on Tuesday October 25, 2022 @08:30AM
(#33329614)
> if slow compilation is such a pain point, I wonder why it takes seven years and counting to fix this bad decision
I'm not sure it was a "bad decision" if it was something that can be addressed after the fact and allowed them to ship working software more quickly.
The vast majority of the popular projects I am aware of have this kind of technical debt, likely due to survivorship bias. Project teams that refuse to take on technical debt are rarely successful enough to become popular.
Re:Rust in Linux kernel is just a beginning
by rbanffy on Wednesday October 26, 2022 @06:19AM
(#33341777)
> if slow compilation is such a pain point, I wonder why it takes seven years and counting to fix this bad decision
Maybe we are giving Rust developers computers that are too fast. ;-)
OTOH, it's always wise to design for the future, so it also makes sense to give Rust developers beefy server grade hardware so they can play with SIMD pipelines and all those extra cores and threads, because that's what workstations will be a couple years from now.
Other reasons:
- suboptimal LLVM IR code, as you mentioned, and other tech debt
- the preferred strategy of monomorphising generics is fast at runtime, but slow to compile, using trait objects is faster
- the complex type system of course also plays a part
- LLVM itself is of course not optimized for Rust