Andrew Kelley: A Practical Guide to Applying Data Oriented Design (DoD)
What it is
Andrew Kelley, creator of Zig, presents practical data-oriented design techniques for shrinking memory footprint and making programs cache friendly. He ends with a case study of how these ideas sped up the Zig compiler.
Why Hacker News recommends it
HN cites it as one of the best talks on data-oriented design, applying struct-of-arrays and compact data layouts to a real compiler.
- 4 people recommended it
- 5 different months
- 0 strong recommendations
- first 2024, last 2026
What HN commenters said
“Another great talk about making efficient lexers and parsers is Andrew Kelley's "Practical Data Oriented Design”
Strategies to reduce memory footprint and make programs cache friendly.
emmanueloga_, 2024-11 · Recommendation · in “Rust for tokenising and parsing”
“there is a related talk by Andrew Kelley implementing these ideas on Zig toolchain”
Applies data-oriented design ideas to the Zig toolchain.
iamcreasy, 2025-07 · Recommendation · in “Writing memory efficient C structs”
“DoD in the Zig compiler”
Data-oriented design applied in the Zig compiler.
Rendello, 2025-10 · Recommendation · in “Your data model is your destiny”
“here's few videos of interest”
Video of interest on struct-of-arrays layouts.
gethly, 2026-01 · Recommendation · in “Why Object of Arrays beat interleaved arrays: a JavaScript performance issue”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: zig, andrew kelley, cache efficiency, struct of arrays, compilers, performance
Also recommended by the same people
documentaryTempleOS | Down the Rabbit HoleFredrik Knudsen · 7 HN recommenders · 2019–2022
explainerOld-fashioned rice cookers are extremely cleverTechnology Connections · 6 HN recommenders · 2020–2025
talkParsing JSON Really Quickly: Lessons LearnedInfoQ · 3 HN recommenders · 2020–2026
talkWhat's a Memory Allocator Anyway? - Benjamin FengZig SHOWTIME · 3 HN recommenders · 2020–2021
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