What's a Memory Allocator Anyway? - Benjamin Feng
What it is
A Zig SHOWTIME talk by Benjamin Feng on what a memory allocator is, followed by an interview. It covers allocation strategies and different allocator types in Zig.
Why Hacker News recommends it
Recommended as a quick, clear overview of allocators and arenas that also shows how Zig approaches allocation.
- 3 people recommended it
- 3 different months
- 0 strong recommendations
- first 2020, last 2021
What HN commenters said
“Talk on what memory allocators are, from a Zig contributor.”
snicker7, 2020-10 · Recommendation · in “Custom Allocators Demystified”
“General overview of single-thread allocation strategies; quick watch, makes you want arenas.”
Rendello, 2021-02 · Recommendation · in “The effect of switching to TCMalloc on RocksDB memory use”
“Nice overview of how Zig works and different allocator types.”
kristoff_it, 2021-03 · Recommendation · in “Drop millions of allocations by using a linked list (2015)”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: zig, allocators, arenas, memory management, systems programming
Also recommended by the same people
documentaryTempleOS | Down the Rabbit HoleFredrik Knudsen · 7 HN recommenders · 2019–2022
talkAndrew Kelley: A Practical Guide to Applying Data Oriented Design (DoD)ChimiChanga · 4 HN recommenders · 2024–2026
explainerOld-fashioned rice cookers are extremely cleverTechnology Connections · 6 HN recommenders · 2020–2025
talkParsing JSON Really Quickly: Lessons LearnedInfoQ · 3 HN recommenders · 2020–2026
interviewJoe Armstrong & Alan Kay - Joe Armstrong interviews Alan KayErlang Solutions · 6 HN recommenders · 2016–2026
talkKeynote - Preventing, Finding, and Fixing Bugs On a Time Budget | Raymond Hettinger @ PyBay2018SF Python · 1 HN recommender · 2020–2022
explainer30 Weird Chess Algorithms: Elo Worldsuckerpinch · 8 HN recommenders · 2019–2026
talkCasey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025Better Software Conference · 11 HN recommenders · 2025–2026