⚡ Zig Guide LiveUnofficialbut fully verified
✓ Zig 0.18.0-dev.1272+2ff397f75What's newOn an older Zig?Blograylib-zig

Blog

Posts about Zig. Each post has a date and a named compiler. Every night, CI keeps the chapters of the guide current, but not the posts. Each post shows the Zig version that it was written against, so you can see the age of the post. For a feed reader, the posts are at blog/rss.xml.

  1. · Zig 0.18.0-dev.246+05671ced9

    The Check That Stopped Checking

    A comptime guard in a small library stopped working after a refactor, and no test failed. The fix is a build step that requires a compile error.

  2. · Zig 0.17.0-dev.2056+79a9897cd

    The File That Was Not There

    A short story about a passphrase tool that worked on one laptop and failed on all others. The fix is @embedFile and a word list that the compiler checks.

  3. · Zig 0.17.0-dev.2056+79a9897cd

    The 2 GB Log File at 11 PM

    A short story about an on-call engineer, a 2 GB log file, a server with no installs, and a 274 KB Zig program. Each program in it runs in your browser.

  4. · Zig 0.17.0-dev.2056+79a9897cd

    builtin.mode is deprecated: read builtin.optimize

    Zig master deprecated builtin.mode, builtin.cpu and builtin.os. This post shows what replaces each one, and how to examine your own compiler.