Get the latest tech news

How Our Rust-to-Zig Rewrite Is Going


For the past year and a half, the team building Roc's compiler has been rewriting our 300,000 lines of Rust code into Zig, for reasons I'll recap below. We recently passed an exciting milestone: feature parity with the original compiler! Since the Bun project recently shared an experience report of their rewrite in the other direction (from Zig to Rust, although that's only the tip of the iceberg of differences between our rewrites), this seems like a nice time to reflect on how our move from Rust to Zig is going.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of zig

zig

Photo of Rewrite

Rewrite

Related news:

News photo

'Rust makes coding fun again': Why Linux is moving away from C, according to Greg Kroah-Hartman

News photo

Zig creator calls Bun’s Claude Rust rewrite ‘unreviewed slop’

News photo

Linus Torvalds on Rust, C, Bugs, and AI Patch-Checking Tools