0Pricing
Zig Academy · Lesson

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

  1. Compile-Time vs Run-Time
  2. comptime Parameters and Values
  3. Types Are comptime Values
  4. inline for and Unrolled Loops
← Back to Zig Academy