@lritter@mastodon.gamedev.place
Post #2937850
2026-05-13 22:26 UTC
@cda@macaw.social yeh. archeap allocs are all pow2 sized, so reallocs have the same footprint as dynamic arrays - in fact, i just use allocs as dynarrays since alloc size is queryable.
when you prepend it grows the front instead bc, as said, shareable (and baseable) offset pointers :)
Replies (1)
-
@cda@macaw.social 2026-05-13 22:40
@lritter@mastodon.gamedev.place That's cool. On one hand it's annoying that strings are such a (comparably) tricky problem to solve... on the other it affords a lot of cleverness. :P I've considered the all-heap approach and then ~ installing cleanup for any strings that uhm "look" like they would be on the stack. -ETOOMANYWAYSFORWARD