hackertube.io

Casey Muratori | Smart-Pointers, RAII, ZII? Becoming an N+2 programmer

xDahl · talk · Watch on YouTube

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

  1. “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”

  2. “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"”

  3. “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”

  4. “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”

  5. “is worth a watch.”

    Manual memory management with groups.

    thegeekpirate, 2025-12 · Recommendation · in “Zig's new plan for asynchronous programs”

  6. “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