What you can do as you go
| Where you are | What you can do |
|---|---|
| Start Here: Level 3 | You write explicit Zig: types, control flow, pointers and slices with nothing hidden anywhere. |
| Levels 4–6 | You own allocators, model with structs and tagged unions, and handle every failure as a typed value. |
| Levels 7–9 | You wield comptime, the build system and C interop: Zig as both language and toolchain. |
| Levels 10–11 | You test with the language’s own tools, choose safety modes deliberately, and optimise from measurements. |
| Project ladder | Five desktop app projects from an allocator-honest tool to a drop-in C replacement: systems control, kept readable. |
The Zig course, level by level
| Level | Lessons in it |
|---|---|
| Start Here: Explicit Systems Programming | Zig's Design Philosophy; Native Compilation |
| Level 1: Zig Foundations | Types and Values; Control Flow; Functions |
| Level 2: Pointers & Memory | Pointers; Slices; Memory Representation |
| Level 3: Allocators | Explicit Allocation; Allocator Interfaces; Designing Memory Ownership |
| Level 4: Structs, Enums & Unions | Structs; Enums; Tagged Unions |
| Level 5: Errors & Optionals | Error Unions; Optionals; Explicit Failure Handling |
| Level 6: Comptime | Compile-Time Evaluation; Generic Programming; Compile-Time Code Generation |
| Level 7: Modules & Build System | Modules; Zig Build; Dependencies and Cross Compilation |
| Level 8: C Interoperability | Calling C; Exporting Zig; Replacing or Extending C Components |
| Level 9: Testing & Debugging | Built-In Testing; Debugging Native Programs; Safety Modes |
| Level 10: Performance | Memory Layout; Profiling; Systems-Level Optimisation |
| Level 11: Zig Mastery | Advanced 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.
| Role | Project | The situation |
|---|---|---|
| Zig Developer | Line-Count Tool, Allocator-Honest | A wc-style text statistics tool: files in, counts out: every allocation explicit, every error typed, leaks impossible under the testing allocator. |
| Systems Developer | Binary Format Codec | Encode 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 Engineer | Rescue a Leaking Cache Server | You 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 Engineer | Arena-Based JSON Log Processor | A 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 Specialist | Drop-In C Library Replacement | The 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".