Since the @bunjavascript folks recently wrote about their experience moving from Zig to Rust, it seemed like a good time to write about our experience rewriting @roc_lang from Rust to Zig!
rtfeldman.com/rust-to-zig
rtfeldman.com/rust-to-zig
Jul 16, 2026 · 9:44 AM UTC
18
116
862
55,973
@rtfeldman @bunjavascript @roc_lang Thanks for the post! I'm curious about the cold build timings. Are these in release or debug? And if debug, is this using LLVM for Zig, or their new custom backend? My mental model has been "Zig should compile faster in non-Release builds" so I'm curious if it's wrong.
1
0
0
1,907
@zeuxcg @bunjavascript @roc_lang Debug for all of them, and it's the default (non-llvm) backend in Zig's case.
0
0
2
1,406
@rtfeldman @bunjavascript @roc_lang Great write up! I appreciate the balance and nuance you brought. I hadn’t seen Andrew’s pointer free programming talk, will have to give that a watch. Roc is incredible.
0
1
7
2,841
@rtfeldman @bunjavascript @roc_lang Given what you know today what would you have done different if you had the opportunity to do it again?
0
0
5
3,115
@rtfeldman @bunjavascript @roc_lang Way to be a good example of how to present a good-faith pleasant post. People reading that will leave with good vibes for roc, rust and zig but an understanding of why you made the choices you did
0
1
5
1,180
@rtfeldman @bunjavascript @roc_lang A very fair and practical write up!
Came across the zero-parse deserialization strategy a few months back in a data oriented design talk as well. Pretty interesting
Came across the zero-parse deserialization strategy a few months back in a data oriented design talk as well. Pretty interesting
0
0
3
716
@rtfeldman @bunjavascript @roc_lang Nice read friend. Just wait till you see Jac, it very well may be the best language in the world, its cooking... give it a little bit more time. (unless of course you don't want to ;-))
0
0
0
202
@rtfeldman @bunjavascript @roc_lang Open source is about trust. To me, the Roc team's approach seems to have earned that, unlike Bun. Looking forward to trying out 0.1.0.
1
0
2
1,297
@rtfeldman @bunjavascript @roc_lang Hahaha, say about waiting for the right moment! Now you can farm the aura.
0
0
1
786
@rtfeldman @bunjavascript @roc_lang This was a very good read even though I haven’t programmed in any of those languages. Makes me want to try both
0
0
0
39
@rtfeldman @bunjavascript @roc_lang Why not self-bootstrapped compiler though? Won’t be it an another rewrite soon?
1
0
0
372
@rtfeldman @bunjavascript @roc_lang Nice use of Perceus ref counting, looking forward to roc numbered release!
0
0
0
158


















