designing a dynamically sizing arena in c is deceptively annoying due to all the...

@Yoshi@wetdry.world

designing a dynamically sizing arena in c is deceptively annoying due to all the tiny decisions you make along the way

on one hand it's cool because you are making those tiny decisions instead of just shrugging it all away to a global allocator (do I want to return indices or pointers? the former simplifies internal design by allowing a simple "realloc" to grow the arena, but the latter has more programmer ergonomics. ok. let's return pointers. now the arena has to stay stable. the common way to handle this is having the arena reserve increasing-size "blocks" which allocations go in. then how should allocation search for free space? scan every block, or just go to the last one? should the allocation API take member size + count, or just byte size? should it take alignment, or just always align to maxalign_t?)

on the other hand I want to do other things than think about an arena all day 💔

should I simply make All The Arena Header Files that covers All My Use Cases and see which one I like most? that is also a decision. probably not a wise one