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.