3 ms·
I think for the problem space zig is trying to fit in, it's pretty essential to have custom allocator support thoroughly baked in. It's the sort of thing that
by chrsig 3y ago
I think for the problem space zig is trying to fit in, it's pretty essential to have custom allocator support thoroughly baked in.
It's the sort of thing that lets a data structure be used on both a gpu and cpu, allocation out of shared memory, or ensure that no dynamic allocations are happening at all.
Most programs don't have those concerns - so zig may not be the best choice for them. For the programs that do have those concerns, forethought about allocators is pretty important. Right tool for the job, and all that.