zig
Installation
SKILL.md
Zig
Zig is a modern system language competing with C/Rust. v0.13 (2025) stabilizes the stdlib and build system. It is famous for its C toolchain capabilities (zig cc).
When to Use
- Systems Programming: OS kernels, game engines, embedded.
- Cross-Compilation: The best cross-compiler toolchain in existence.
- Drop-in C Replacement: Can compile .c files directly.
Core Concepts
Comptime
Run code at compile time. comptime { ... }.
Allocators
Memory management is explicit. You pass an Allocator to functions.