Course

Learn Zig

Systems programming with nothing hidden: explicit allocators, error unions, comptime metaprogramming and first-class C interop: until you control every byte and still read the code next year.

This is the whole Zig course in the LoWisa phone app, level by level: 12 levels, 35 lessons and 105 ideas, each taught and then checked. The first level, Start Here: Explicit Systems Programming, is free.

Updated 2026-11-25

What you can do as you go

Where you areWhat you can do
Start Here: Level 3You write explicit Zig: types, control flow, pointers and slices with nothing hidden anywhere.
Levels 4–6You own allocators, model with structs and tagged unions, and handle every failure as a typed value.
Levels 7–9You wield comptime, the build system and C interop: Zig as both language and toolchain.
Levels 10–11You test with the language’s own tools, choose safety modes deliberately, and optimise from measurements.
Project ladderFive desktop app projects from an allocator-honest tool to a drop-in C replacement: systems control, kept readable.

The Zig course, level by level

LevelLessons in it
Start Here: Explicit Systems ProgrammingZig's Design Philosophy; Native Compilation
Level 1: Zig FoundationsTypes and Values; Control Flow; Functions
Level 2: Pointers & MemoryPointers; Slices; Memory Representation
Level 3: AllocatorsExplicit Allocation; Allocator Interfaces; Designing Memory Ownership
Level 4: Structs, Enums & UnionsStructs; Enums; Tagged Unions
Level 5: Errors & OptionalsError Unions; Optionals; Explicit Failure Handling
Level 6: ComptimeCompile-Time Evaluation; Generic Programming; Compile-Time Code Generation
Level 7: Modules & Build SystemModules; Zig Build; Dependencies and Cross Compilation
Level 8: C InteroperabilityCalling C; Exporting Zig; Replacing or Extending C Components
Level 9: Testing & DebuggingBuilt-In Testing; Debugging Native Programs; Safety Modes
Level 10: PerformanceMemory Layout; Profiling; Systems-Level Optimisation
Level 11: Zig MasteryAdvanced Comptime; Systems Architecture; Reading and Improving Complex Zig

Each level has its own page with every lesson and what it teaches.

Start Here: Explicit Systems Programming: what the free first level teaches

Zig's Design Philosophy

  • No hidden control flow. Zig’s rule: no hidden control flow: no exceptions, no operator overloading, what you read is what runs.
  • No hidden allocation. Nothing allocates unless you pass an allocator: memory a visible parameter, never a surprise.
  • Simplicity as feature. Zig stays small: a language you can hold entirely in your head while reading anyone’s code.

Native Compilation

  • Compiled Zig. Zig compiles to native code: no runtime, no garbage collector, direct machine truth.
  • Cross-compilation built in. Cross-compilation ships in the toolchain: any target from any host, C included.
  • Zig as a C toolchain. zig cc compiles C itself: the toolchain story that carried Zig into real builds early.

Projects you build

The course has 5 projects, built in the LoWisa desktop app, each in the role of someone who does this work.

RoleProjectThe situation
Zig DeveloperLine-Count Tool, Allocator-HonestA wc-style text statistics tool: files in, counts out: every allocation explicit, every error typed, leaks impossible under the testing allocator.
Systems DeveloperBinary Format CodecEncode and decode a documented binary format (a save-file or packet layout): packed structs, endianness, sentinel strings: layout as types, verified by round-trip properties.
Zig EngineerRescue a Leaking Cache ServerYou inherit a small in-memory cache: it leaks under the GPA, double-frees on one eviction path, ignores an error return, and hides an alignment bug behind ReleaseFast. Repair it with Zig’s own tools.
Senior Systems EngineerArena-Based JSON Log ProcessorA high-throughput log processor: parse JSON lines, filter, aggregate: arena per batch, zero steady-state allocation, throughput measured and tuned like the systems tool it is.
Zig SpecialistDrop-In C Library ReplacementThe mastery build: reimplement a small C library (a string-set or ini parser) in Zig, exporting the exact C header: consumers relink and never notice, except the sanitizers go quiet.

How you learn it

  • One idea at a time. Each lesson teaches a few ideas and asks you about each before it moves on.
  • A checkpoint and flashcards at the end of every level. See Checkpoints and flashcards.
  • Games on what you have learned. See Revision games.
  • On your phone. The app is on Google Play and the App Store. See Getting started.

Frequently asked questions

How many levels does the LoWisa Zig course have?

12 levels with 35 lessons, from Start Here: Explicit Systems Programming to Level 11: Zig Mastery.

Is the Zig course free?

The first level, Start Here: Explicit Systems Programming, is free, with its checkpoint and flashcards. A plan opens the rest; see Plans and credits in the Help centre.

Where does the Zig course start?

With Start Here: Explicit Systems Programming. Its first lesson is "Zig's Design Philosophy".

Start Zig with the free first level

LoWisa is on Google Play and the App Store.