Zig Iterators 28 October 2025·3 mins Language/Zig Zig/0.15.1 Zig/Comptime Zig/Slice Writing a custom iterator in Zig for a generic Slice type, with a next() method that returns an optional so you can loop over it with while.
Building a Generic Stack in Zig with comptime 8 March 2025·7 mins Language/Zig Zig/0.14.0 Zig/Data-Structures Zig/Comptime How I built a generic stack in Zig using comptime, with push and pop, and how it grows the buffer with an allocator and @memcpy when it fills up.