Advanced Comptime
- Type-generating functions. Mastery composes type functions: configured containers and state machines built at compile time.
- Comptime interfaces. Static interfaces check capability at instantiation: duck typing with compile-time receipts.
- Build-time codegen. build.zig generates sources where needed: tables and bindings as build steps.
Systems Architecture
- Allocator architecture. System design in Zig is allocator design: which strategy owns which lifetime, drawn first.
- Error-set architecture. Crate-wide error sets compose: boundaries merging and narrowing failures deliberately.
- When Zig fits. Zig buys control and clarity; it cedes ecosystem breadth: the trade named per project.
Reading and Improving Complex Zig
- Reading strategy. Read Zig by its allocators and error sets: who owns memory, what can fail, in every signature.
- Refactoring with the compiler. Change the type and follow the errors: explicit everything makes refactors mechanical.
- Explaining decisions. Mastery is explaining the design: these allocators, these error sets, this comptime budget: trade-offs named.
Before and after this level
- Before: Level 10: Performance: Memory Layout, Profiling, Systems-Level Optimisation.
- Next: this is the last level. The course ends with its projects; see the course outline.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Zig Level 11: Zig Mastery cover?
Advanced Comptime, Systems Architecture, Reading and Improving Complex Zig: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 10: Performance, which covers Memory Layout, Profiling, Systems-Level Optimisation.