3 ms·
This requires using arenas extensively in your program or perhaps playing tricks with virtual memory, because your system allocator will give you arbitrary poin
by zozbot234 3y ago
This requires using arenas extensively in your program or perhaps playing tricks with virtual memory, because your system allocator will give you arbitrary pointers by default and you'll often want to point to an object from a different allocation.
- gizmo 3y agoRight. Which is why I favor doing your own memory management entirely (which has some huge advantages) or not worrying about memory at all and trusting a garbage collector. I don't think there are many situations left where memory management is too important to leave to a gc but not important enough to do from scratch.
- adql 3y agoPlenty of niche ways that are limited enough to not require program wide architecture change https://muxup.com/2023q4/storing-data-in-pointers#some-real-world-examples https://muxup.com/2023q4/storing-data-in-pointers#some-real-...