News for hackers. Stuff that matters.
Re:The lost malloc() by veltas on Wednesday November 04, 2026 @05:41AM (#50363704)
I don't associate with the author that well here because I'm not hyped about 'arena allocators' and I don't really care that free doesn't receive a size. I think the interface was okay.

Also 'arena allocators' (this meant something different like 20 years ago so I think the name just got rebranded) are not that good, they make some things easier and improve performance sometimes, they also are liable to use more memory and cause more fragmentation if not used with care. That is one of the many reasons why we slowly evolved away from the old linear allocators, but also because we just wanted a simple and flexible interface to hide complexity.

Re:The lost malloc() by warmwaffles on Wednesday November 04, 2026 @09:57AM (#50366437)
Arena/linear allocators have their place. In real-time systems they are fantastic to reset quickly and bypass having to interact with the kernel.