How Our Rust-to-Zig Rewrite is Going

117 points by rrampage


dlisboa

As impressive as that improvement is, Zig's 35ms is still way ahead. Not only is it 1/100th the build time of 3.4 seconds, it's also in a different performance category—and that 35ms is on a Zig code base with ~50% more lines of code than the Rust one that got 3.4s.

On paper it's crazy fast but in reality it doesn't seem to me the build improvement is that impressive. 3.4 seconds is quite fast enough and if you're coding a compiler you're not going to be rebuilding every single minute, so that's a 3 second gain at maybe every 10 minutes or so. number come down with no extra effort.

Sure, like they said, the codebase will grow so Rust would be slower in the long run, but I think too much is being made about sub-second compilation like it's a must have. The cold build times got worse as well, those are also relevant. I'd maybe posit that simply upgrading your notebook every 2 years or so, along with their improvements to compilation speed, would make that Rust number flatline over time, so it's not a given that the Rust build would always get slower.