⚡ Zig Guide LiveUnofficialbut fully verified
✓ Zig 0.17.0-dev.1503+1f1bee62eWhat's newOn an older Zig?

What's new

New chapters, in the order they were published. Generated from the repository's history at build time, so it lists what shipped rather than what someone remembered to write down. The guide currently servesZig 0.17.0-dev.1503+1f1bee62e, and all 146 snippets were compiled and run against that build before this page existed.

  • Expand the Standard Library section and add site search

    8 chaptersBit Sets and Enum CollectionsMultiArrayListParsing and EncodingPriorityQueueStringsTestingand 2 more

  • Add a SIMD byte scanning recipe and enable simd128 in the shipped wasm

    1 chaptercookbook/simd-scan

  • Open the ORM group with an Ecto primer for non-Elixir readers

    1 chapterbuilding-libraries/orm/what-is-ecto

  • Complete the ORM group: writes, dialects, migrations, repo, transactions

    5 chaptersbuilding-libraries/orm/adaptersbuilding-libraries/orm/insert-updatebuilding-libraries/orm/migrationsbuilding-libraries/orm/repobuilding-libraries/orm/transactions

  • Start a Building Libraries section with an Ecto-style ORM group

    3 chaptersbuilding-libraries/orm/query-builderbuilding-libraries/orm/schema-to-sqlbuilding-libraries/orm/validation-rules

  • Add an HTTP round-trip recipe: std.http over the Io interfaces

    1 chaptercookbook/http-roundtrip

  • Add networking recipes, and make native .expected files actually bite

    2 chapterscookbook/tcp-echocookbook/udp-message

  • Add tier-2 cookbook recipes: threads, atomics, and Io.Queue

    3 chapterscookbook/parallel-sumcookbook/work-indexcookbook/worker-queue

  • Add three more cookbook recipes: ring buffer, bit sets, seeded PRNG

    3 chapterscookbook/bitsetscookbook/ring-buffercookbook/seeded-random

  • Add a cookbook section: seven problem-first recipes

    7 chapterscookbook/binary-roundtripcookbook/catching-leakscookbook/checked-mathcookbook/json-configcookbook/simd-sumcookbook/struct-printerand 1 more

  • Add a migration page instead of a version dropdown

    1 chapterComing from an Older Zig

  • Complete Getting Started, Build System, and Working with C

    11 chaptersBuild ModesCross-compilationEmitting an ExecutableGenerating DocumentationZig BuildInstallationand 5 more

  • Complete the Standard Library section, and add a native-target mode

    14 chaptersAdvanced FormattingArrayListConcurrencyCryptoFilesystemFormattingand 8 more

  • Complete the Language section: comptime, vectors, imports, and the rest

    13 chaptersanonymous-structscomptimefloatsimportsinline-loopsinteger-rulesand 7 more

  • Language basics: pointers, slices, enums, structs, unions

    7 chaptersenumsmany-item-pointerspointer-sized-integerspointersslicesstructsand 1 more

  • Language basics: assignment through runtime safety

    10 chaptersarraysassignmentdefererrorsfor-loopsfunctionsand 4 more

  • Verified Zig guide: snippet pipeline, browser playground, dev tooling

    3 chaptersallocatorshello-worldoptionals

Older changes are in the repository's history. The nightly build runs at 06:00 UTC against Zig master, so a day with no entry here is a day the compiler changed nothing this guide depends on. The same list, for a feed reader, is at rss.xml, and the guide itself starts at the section list.