Skip to content
Hacker News front page

Roc's Rust-to-Zig compiler rewrite hits feature parity

How Our Rust-to-Zig Rewrite Is Going

After 487 days, Roc's 300K-line Rust compiler rewrite in Zig reached feature parity. A demo game now compiles to a 31KB wasm binary, less than half the original size. The new compiler adds hot code loading during dev and reproducible cross-compilation. The team says this was a redesign, not a direct port, so direct Rust-vs-Zig comparisons don't apply. No formal release yet; v0.1.0 is planned later this year.

Why it matters: Roc's team spent 487 days rewriting 300k lines of Rust compiler in Zig, just hit feature parity. 31KB wasm (less than half original), hot-reloading, and reproducible static binaries are concrete wins. The natural contrast with Bun's Zig→Rust report adds value. Capped at 72 bec...

Read the original ↗Export Markdown