Zig And Rust
This post will be a bit all over the place. Several months ago, I wrote Hard Mode Rust, exploring an allocation-conscious style of programming. In the ensuing discussion, @jamii name-dropped TigerBeetle, a reliable, distributed, fast, and small database written in Zig in a similar style, and, well, I now find myself writing Zig full-time, after more than seven years of Rust. This post is a hand-wavy answer to the why? question. It is emphatically not a balanced and thorough comparison of the two languages. I haven't yet written my 100k lines of Zig to do that. (if you are looking for a more general what the heck is Zig, I can recommend @jamii's post). In fact, this post is going to be less about languages, and more about styles of writing software (but pre-existing knowledge of Rust and Zig would be very helpful). Without further caveats, let's get started.
This post will be a bit all over the place. Several months ago, I wrote Hard Mode Rust , exploring an allocation-conscious style of programming. In the ensuing discussion, @jamii name-dropped TigerBeetle , a reliable, distributed, fast, and small database written in Zig in a similar style, and, well, I now find myself writing Zig full-time, after more than seven years of Rust. This post is a hand-wavy answer to the “why?” question. It is emphatically not a balanced and thorough comparison of the two languages. I haven’t yet written my 100k lines of Zig to do that. (if you are looking for a mor
Explore this link on the map →related reading
- Assorted thoughts on zig (and rust)scattered-thoughts.net
- Rewriting Bun in Rust | Bun Blogbun.com
- Devlog ⚡ Zig Programming Languageziglang.org
- Zig Creator Calls Spade a Spade, Anthropic Blows Smokeraymyers.org
- NYSRGnotes.ekzhang.com
- I think Zig is hard...but worth it - ratfactorratfactor.com
- Zig explores structured concurrency [LWN.net]lwn.net
- Zed — Your last next editorzed.dev
- 0028: HYTRADBOI jam, sqllogictest in a week, how safe is zig again, rr on alder lake, google maps jank, linksscattered-thoughts.net
- Zig: Already More Knowable Than C - Andrew Kelleyandrewkelley.me
- Rust Language Cheat Sheetcheats.rs
- The Rust Journey, Part 0: Why Systems Software and Why Rust?monadical.com