How Our Rust-to-Zig Rewrite Is Going

21jorangreef💬 1

Our team has spent a year and a half rewriting the Roc compiler from Rust into Zig, recently achieving feature parity. This massive effort unlocked hot code loading, zero-allocation pattern matching, and improved cross-compilation. Unlike quick ports, our rewrite addressed deep architectural flaws, proving that a fresh start was essential for the language's future performance and reliability.

"Compilers are unusual in that scratch-rewrites are the norm among successful projects."

More from this day · 2026-07-16