# 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. The full outline of the LoWisa Zig course: 12 levels, 35 lessons. The first level is free.

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.

## 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](/courses/zig/start-here/) | Zig's Design Philosophy; Native Compilation |
| [Level 1: Zig Foundations](/courses/zig/level-1-zig-foundations/) | Types and Values; Control Flow; Functions |
| [Level 2: Pointers & Memory](/courses/zig/level-2-pointers-and-memory/) | Pointers; Slices; Memory Representation |
| [Level 3: Allocators](/courses/zig/level-3-allocators/) | Explicit Allocation; Allocator Interfaces; Designing Memory Ownership |
| [Level 4: Structs, Enums & Unions](/courses/zig/level-4-structs-enums-and-unions/) | Structs; Enums; Tagged Unions |
| [Level 5: Errors & Optionals](/courses/zig/level-5-errors-and-optionals/) | Error Unions; Optionals; Explicit Failure Handling |
| [Level 6: Comptime](/courses/zig/level-6-comptime/) | Compile-Time Evaluation; Generic Programming; Compile-Time Code Generation |
| [Level 7: Modules & Build System](/courses/zig/level-7-modules-and-build-system/) | Modules; Zig Build; Dependencies and Cross Compilation |
| [Level 8: C Interoperability](/courses/zig/level-8-c-interoperability/) | Calling C; Exporting Zig; Replacing or Extending C Components |
| [Level 9: Testing & Debugging](/courses/zig/level-9-testing-and-debugging/) | Built-In Testing; Debugging Native Programs; Safety Modes |
| [Level 10: Performance](/courses/zig/level-10-performance/) | Memory Layout; Profiling; Systems-Level Optimisation |
| [Level 11: Zig Mastery](/courses/zig/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](/help/checkpoints-and-flashcards/).
- **Games on what you have learned.** See [Revision games](/help/revision-games/).
- **On your phone.** The app is on Google Play and the App Store. See [Getting started](/help/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.

---

Source: https://lowisa.dev/courses/zig/ · Updated 2026-11-25
