Casey Muratori | Smart-Pointers, RAII, ZII? Becoming an N+2 programmer
What it is
Casey Muratori argues against smart pointers and RAII, advocating grouped-element thinking, zero-is-initialization and stubs as better ways to structure memory and handle errors.
Why Hacker News recommends it
HN commenters in memory management and language design threads cite it as the best explanation of group lifetimes versus per-object ownership.
- 6 people recommended it
- 6 different months
- 3 strong recommendations
- first 2024, last 2026
What HN commenters said
“I think Casey Muratori hits the nail on the head here”
Casey Muratori on grouped-element thinking versus RAII and smart pointers.
bsder, 2024-09 · Strong recommendation · in “Committing to Rust in the Kernel”
“The best video on this might be from Casey Muratori”
Explains locality affecting globality in language design.
gingerBill, 2026-01 · Strong recommendation · in “Odin: Moving Towards a New "core:OS"”
“I used to think like you until I watched this video”
Changed commenter's view on borrow checking and lifetimes.
jackclayton, 2026-07 · Strong recommendation · in “Claude Code uses Bun written in Rust now”
“Much better outcomes and failure modes than RAII.”
Casey on moving to zero-is-initialization.
slowmovintarget, 2025-05 · Recommendation · in “Odin: A programming language made for me”
“is worth a watch.”
Manual memory management with groups.
thegeekpirate, 2025-12 · Recommendation · in “Zig's new plan for asynchronous programs”
“Casey Muratori has a good video talking about this.”
Casey on arena allocation and grouped lifetimes.
ChrisTrenkamp, 2026-05 · Recommendation · in “Bun ported to Rust in 6 days”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: raii, smart pointers, zero is initialization, arena allocation, casey muratori
Also recommended by the same people
lectureMIT's Pathway to Fusion Energy (IAP 2017) - Zach HartwigMIT Plasma Science and Fusion Center · 16 HN recommenders · 2017–2023
interviewThere’s No Wave Function? | Jacob BarandesCurt Jaimungal · 2 HN recommenders · 2024–2026
talkRich Hickey: Deconstructing the DatabaseInfoQ · 4 HN recommenders · 2012–2020
lectureA Brief History of Quantum Mechanics - with Sean CarrollThe Royal Institution · 5 HN recommenders · 2020–2022
explainerThe world depends on a collection of strange items. They're not cheapVeritasium · 6 HN recommenders · 2023–2026
talkCppCon 2015: Andrei Alexandrescu “std::allocator...”CppCon · 7 HN recommenders · 2017–2025
talkLexical Scanning in Go - Rob PikeGoogleFOSSSydney · 13 HN recommenders · 2012–2025
talkCppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step”CppCon · 9 HN recommenders · 2018–2026