Learning Zig - Heap Memory & Allocators

from blog openmymind.net, | ↗ original
Stack Memory Intro Generics Heap Memory and Allocators Everything we've seen so far has been constrained by requiring an upfront size. Arrays always have a compile-time known length (in fact, the length is part of the type). All of our strings have been string literals, which have a compile-time known length. Furthermore, the two types...