Compile-Time vs Run-Time
What Zig can evaluate before running.
Two Times in One Program
Zig code lives in two worlds: things that happen while you compile, and things that happen while the program runs. Learning the split unlocks Zig's power. ⏱️
Run-Time Is the Familiar One
Run-time is everything that happens when your built binary executes: user input, file reads, and values you cannot know in advance.
All lessons in this course
- Compile-Time vs Run-Time
- comptime Parameters and Values
- Types Are comptime Values
- inline for and Unrolled Loops