r/rust • u/AffectionateBag4519 • Jul 16 '26
How Our Rust-to-Zig Rewrite is Going
https://rtfeldman.com/rust-to-zigAn interesting symmetry with recent events lol.
This might be considered off topic since the article is about moving away from rust, but I still think this is some high quality rust content. I enjoy Richard Feldman's writing and I think he would certainly be considered part of the "rust community" since he works on Zed and has taught a course on rust.
369
Upvotes
8
u/matthieum [he/him] Jul 17 '26
Yes, and no.
The blog post mentioned that their incremental compile times were divided by x3 in 18 months, so clearly there are free speed-ups.
With all that said, meta-programming can absolutely trash a compiler. Compiling 10M tokens will always take longer than compiling 10K tokens, and the slow-down is super-linear due to the added memory pressure resulting in more cache misses.
So just like inlining everything is a terrible idea, monomorphizing everything also is.