Zig is the newest language on this page by a wide margin, and I want this page to read that way — short on claimed experience, long on genuine curiosity, and explicit about the gap between the two. I didn’t go looking for Zig directly; it kept coming up as a reference point while I was reading about Rust and about low-level language design more generally — comparison threads, “if you like Rust’s goals but want something closer to C” recommendations, that kind of secondhand discovery. I’ve been poking at it for a few weeks since, not months, and definitely not as part of anything resembling real work yet. Consider this the baseline entry that every future update will be measured against.
Where I stand with it
My Zig experience so far consists of working through the official language reference, writing a handful of small programs — a basic command-line tool, a couple of data structure exercises I’d already done in C for comparison — and reading a meaningful amount about Zig’s build system and its comptime feature without having used either of them in anything beyond toy examples. I understand the basic syntax, I understand the pitch (a from-scratch alternative to C, not an alternative to C++ or Rust specifically), and I understand roughly why people who are excited about it are excited. I have not built anything real, I have not touched the package manager in a serious dependency-graph sense, and I have not yet hit any of the rough edges that come with a language that, as of when I’m writing this, hasn’t reached a 1.0 release and is still changing underneath anyone who uses it.
I came to Zig directly from my C experience, deliberately, because the pitch — “what C would look like if it were designed today, with the mistakes known in advance” — is exactly the kind of claim I want to test against a language I already have a real, if humble, relationship with. That comparison is the lens for everything else on this page.
What I think of it
With the caveat that this is a tourist’s opinion and not a resident’s, here’s where I’ve landed so far.
The feature I find most interesting, by a clear margin, is comptime — Zig’s approach to compile-time code execution and generic programming. Coming from C, where “generic” code usually means either void pointers and manual casting or a pile of preprocessor macros, and from C++, where templates solve the same problem with enormous additional complexity and infamously unreadable error messages, Zig’s pitch of “just run regular Zig code at compile time, using the same language you already know” is genuinely appealing on paper. I haven’t used it on anything beyond the examples in the documentation, so I can’t yet speak to whether it holds up under real pressure the way C++ templates eventually reveal their complexity under real pressure. That’s one of the first things I want to actually test once I move past toy examples.
The explicit absence of hidden control flow is the other thing that’s struck me, again specifically because of my C background. No hidden allocations, no operator overloading that could secretly run arbitrary code, no exceptions unwinding a stack you didn’t expect — Zig’s philosophy seems to be “if the code does something, you can see it doing that something by reading the code in front of you,” which is close to the appeal C has for me, minus some of the sharpest footguns (no undefined-behavior-by-default on integer overflow in safe build modes, defer and errdefer handling cleanup more legibly than C’s manual goto-based cleanup patterns I’ve had to write by hand).
Error handling via Zig’s error unions and the try/catch keywords feels, from the outside, like it’s aiming at the same target Go is aiming at with explicit if err != nil checks — errors as values, not hidden exceptions — but with less visual noise than Go’s repeated boilerplate. I like the idea. I haven’t used it enough to know whether that initial impression survives contact with a real, messy error-handling situation.
Where I’m genuinely unsure, and want to be honest about rather than performing false confidence: I don’t yet know if Zig’s “better C” pitch is actually true in practice, or whether it’s true specifically for the kinds of problems its early, vocal community tends to solve (build tooling, game engines, embedded work), and less true for whatever I’d actually end up using it for. I also don’t know yet how much the pre-1.0 instability matters in practice versus in theory — reading about breaking changes between versions is different from having a project break under me because of one. And I’m watching the Zig-versus-Rust conversation from the sidelines with real interest, because they’re clearly aimed at overlapping territory with very different philosophies — Zig betting that simplicity and explicitness are enough to avoid memory bugs through discipline and tooling, Rust betting that the compiler should refuse to let you make the mistake at all. I don’t have the experience yet to have an informed opinion about which bet I’d place my own money on, and I think it would be dishonest to pretend otherwise this early.
One specific claim I’d like to actually test, rather than just repeat secondhand: Zig’s cross-compilation story is consistently described as dramatically simpler than C’s, to the point of being a headline feature rather than an afterthought — reportedly no separate toolchain wrangling, just a target flag. If that holds up under my own use, it would matter a lot for homelab-adjacent work, where building something on one machine for a different architecture (a Raspberry Pi, say) is a real and recurring annoyance in C. Right now that’s still a claim I’ve read rather than verified, and I want this page to be clear about that distinction until I’ve actually tried it myself.
Where I go to learn it
- The official Zig Language Reference — dense and occasionally more “specification” than “tutorial,” but for a language this young, it’s also the most reliably up to date resource, which matters more here than for a language with twenty years of stable tutorials floating around.
- ziglang.org’s “Zig Guide” community resource — more approachable than the language reference for getting actual working code running quickly, and better at explaining why a pattern is idiomatic rather than just stating that it is.
- Andrew Kelley’s conference talks (Zig’s creator) — the closest thing to hearing the design rationale straight from the source, which I’ve found valuable for every language on this page where I could get it, and it’s especially valuable here given how young and still-evolving the language is.
- The Zig standard library source itself — unusual as a “learning resource,” but for a language this new, reading the standard library’s own implementation has taught me as much about idiomatic Zig as any guide has, partly because there isn’t yet a deep well of third-party tutorials to lean on instead.
- The Ziggit community forum and the Zig subreddit — useful mostly for watching how the small but active community works through the language’s rough edges and ongoing design debates in real time, which feels more informative for a pre-1.0 language than it would for something more settled.
Where this is headed
Of every page in this section, this is the one most likely to either grow substantially or quietly stop being updated, depending on whether Zig earns a real project from me or stays a curiosity I circle back to occasionally. I’m genuinely unsure which outcome is more likely right now, and I’d rather say that plainly than pretend this is already a settled commitment.