Hacker News new | past | comments | ask | show | jobs | submit login

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.



Right. 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.


Plenty of niche ways that are limited enough to not require program wide architecture change

https://muxup.com/2023q4/storing-data-in-pointers#some-real-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: