Zig is a programming language for writing fast, small, reliable programs.
| Section | Title |
|---|---|
| 1 | What Is Zig |
| 2 | What Is Zig |
| 3 | Why Zig Exists |
| 4 | Installing Zig |
| 5 | Zig Release Channels and Versioning |
| 6 | Your First Zig Program |
| 7 | Understanding zig build-exe |
| 8 | Zig Compiler as a Toolchain |
| 9 | Project Structure |
| 10 | Editors, LSP, and Debuggers |
| 11 | Reading Zig Error Messages |
What Is ZigZig is a programming language for writing fast, small, reliable programs.
What Is ZigZig is a programming language for writing programs that are fast, clear, and close to the machine.
Why Zig ExistsZig exists because low-level programming is still important, but the old tools have painful tradeoffs.
Installing ZigBefore we write more Zig code, we need the Zig compiler.
Zig Release Channels and VersioningBefore writing larger Zig programs, you need to understand an important fact:
Your First Zig ProgramNow we will write and run a complete Zig program.
Understanding `zig build-exe`In the previous section, we used this command:
Zig Compiler as a ToolchainWhen beginners hear the word “compiler,” they often think of one job:
Project StructureSo far, we have used single-file programs.
Editors, LSP, and DebuggersYou can write Zig code in any text editor.
Reading Zig Error MessagesSooner or later, every Zig beginner meets the compiler.