Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 6,299 posts.

Any topic
2023
1689

Arena allocator tips and tricks

Over the past year I’ve refined my approach to arena allocation . With practice, it’s effective, simple, and fast; typically as easy to use as garbage collection but without the costs. Depending on need, an allocator can weigh just 7–25 lines of code — perfect when lacking a runtime . With the core details of my own…