We will work in pure Rust, with no C++ shim or Python wrapper. We will build one small program that grows to cover the whole book. It begins as a loop that any of us could have written on a bad day. After gaining a kernel, it learns to stop waiting, grows streams and pinned memory, and ends as a pipeline fed by parallel producers through bounded channels. The device is busy almost every millisecond.
Zig in Depth is a practical guide to modern systems programming with Zig. Through clear explanations and runnable examples, you'll learn to write safe, efficient, and idiomatic Zig code, from the language fundamentals to advanced features like comptime, memory management, concurrency, and C interoperability.
This book is basically a record of my serious learning journey with Zig. The application at its heart, Zigkit, started as a single print statement and ended as twenty-five cooperating modules handling everything from arithmetic to HTTP. It's small enough to understand completely and complete enough to demonstrate every major systems programming concern. Each section of the book adds one module, introduces one concept, and produces one working program.