News for hackers. Stuff that matters.
Re:Rust – Faster compilation with the parallel front-end in ... by hobofan on Friday November 10, 2023 @02:51PM (#38223641)
> 2. Cranelift could potentially improve backend codegen compile times significantly as well.

I've been told that the Cranelift team (at least for the time being) doesn't have the intention on focusing on the optimizer to a degree where it would be competitive with LLVM's optimizers (which would also be a huge effort). So if you want faster compile times you would have to take significant performance hits (which for a lot of code compiled in CI is not a trade-off that people are willing to take).

Re:Rust – Faster compilation with the parallel front-end in ... by estebank on Friday November 10, 2023 @03:28PM (#38224075)
Beyond specific optimization and implementation details of a compiler, the three variables of "compilation speed", "generated code optimization" and "language expressiveness" are fundamentally in tension. In order to move one axis you have to affect one or both of the other two.
Re:Rust – Faster compilation with the parallel front-end in ... by insanitybit on Friday November 10, 2023 @03:03PM (#38223795)
Yes, to be clear, Cranelift would be suitable for dev and test builds, you'd likely use llvm for release builds. So in your CI builds you'll almost certainly stick to llvm.

(1) and (3) are still very significant, fwiw.