What's a Memory Allocator Anyway? - Benjamin Feng
Zig SHOWTIME3 HN recommenders · recommended in 3 months, 2020–2021
talk · intro · evergreen · 2020–2021 on HN
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.
Recommended as a quick, clear overview of allocators and arenas that also shows how Zig approaches allocation.
Up next
8 mo on HNTempleOS | Down the Rabbit Hole
Fredrik Knudsen
7 HN recommender · 2019–2022
5 mo on HNAndrew Kelley: A Practical Guide to Applying Data Oriented Design (DoD)
ChimiChanga
4 HN recommender · 2024–2026
6 mo on HNOld-fashioned rice cookers are extremely clever
Technology Connections
6 HN recommender · 2020–2025
3 mo on HNParsing JSON Really Quickly: Lessons Learned
InfoQ
3 HN recommender · 2020–2026
7 mo on HNJoe Armstrong & Alan Kay - Joe Armstrong interviews Alan Kay
Erlang Solutions
6 HN recommender · 2016–2026
1 mo on HNKeynote - Preventing, Finding, and Fixing Bugs On a Time Budget | Raymond Hettinger @ PyBay2018
SF Python
1 HN recommend · 2020–2022
6 mo on HN30 Weird Chess Algorithms: Elo World
suckerpinch
8 HN recommender · 2019–2026
8 mo on HNCasey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025
Better Software Conference
11 HN recommender · 2025–2026
11 mo on HNCppCon 2015: Andrei Alexandrescu “std::allocator...”
CppCon
7 HN recommender · 2017–2025
12 mo on HNLexical Scanning in Go - Rob Pike
GoogleFOSSSydney
13 HN recommender · 2012–2025
10 mo on HNCppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step”
CppCon
9 HN recommender · 2018–2026
9 mo on HNRustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine West
Rust Programming Language
9 HN recommender · 2018–2023
3 comments from Hacker News
For an overview of how Zig does this and at the same time a nice overview on different types of allocators: What's a Memory Allocator Anyway? by Benjamin Feng ▶ this video
It's interesting that I saw this post minutes after watching the talk "What's a Memory Allocator Anyway?" by Benjamin Feng. It's ostensibly about Zig's allocation schemes, but it's more of a general overview of the varied (single-thread) allocation strategies in use today. It made me really want to try out arena allocators It's a quick watch at 1.5x speed, the last third is an interview. 1. ▶ this video
Would recommend watching the "What's a Memory Allocator, Anyway?" talk from Zig contributor Benjamin Feng: ▶ this video