Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

My assumption is that @chubot ment that malloc'ing each time you need some memory has been bad practise ever since. Mostly, pre-allocating stuff for whatever you need is the way to go, but that is not far away from writing general purpose arenas. At least not conceptually. So, arenas are nothing new (I guess... I had not been around back than).


Indeed, arenas are not a new invention, but to quote a knowledgeable friend who's been around longer than us:

> you can find, for example, spolsky writing about [arenas] in 2003

Game engine, embedded, and OS people certainly knew about them. But this is the crucial point:

> it's possible for many people to know/use them, and also for most people not to know/use them

I grew up on Linux forum boards -- with lots of greybeards writing C -- and I was never once exposed to arenas (or bump / linear allocators.)

In school we wrote programs in C, and professors never challenged the forests of mallocs: despite most bugs stemming from them.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: