HN Hall of Fame Weekly email

Baby's First Garbage Collector

journal.stuffwithstuff.com Books & learning Tutorials & guides Computer science Candidate
Screenshot of journal.stuffwithstuff.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 7 calendar years, with breakout response in 3 of them.

submissions
11
submitters
10
observed span
2013–2025
peak thread · 84 comments
217 pts
latest 20+ return · 2022-08-10
146 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

So every once in a while I come across old timey C optimizations in the spirit of Duff's device or bit twiddling to swap variables, 'etc 'etc... While they have a certain kind of charm to them they seem to be almost universally bested by increasingly mature compilers and complex (or virtualized) hardware. So I'm kind of coming to the conclusion that clever pointer arithmetic games and even manual malloc/free are increasingly futile unless you're targeting embedded devices. If a…

recuter·217-point thread·

The "Garbage Collection" chapter in the OP's recent book Crafting Interpreters goes into this in a bunch more detail (in the context of a language VM): https://craftinginterpreters.com/garbage-collection.html -- so well written, both this and the 2013 blog post.

benhoyt·146-point thread·

This is awesome. I'm working my way through The Garbage Collection Handbook and it's always nice to see a GC link on HN. "What does “low on memory” even mean, especially on modern computers with near-infinite virtual memory?" is a question that I've been wondering about for a while.

Shameless plug: I ported the code to Rust: https://github.com/baguette/rs-babygc (feedback is welcome).

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
545

reference only — not used in Hall rules or ranking

Total comments
161

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2013-12-08Baby's First Garbage CollectorFirst breakout · Best threaddaw___21784
2015-12-26Baby's First Garbage Collector (2013)rspivak4817
2018-01-21Simple Garbage Collector – Implementationbootcat20
2018-09-03Baby's First Garbage Collector – Journal.stuffwithstuff.comfedericoponzi10
2019-03-12Baby's First Garbage Collector (2013)lrsjng10
2019-08-09Baby's First Garbage Collectorpcr91030310
2019-11-06Baby’s First Garbage Collector (2013)pcr91030312529
2021-05-13Baby's First Garbage Collectorluismedel10
2022-03-02Baby’s First Garbage Collector (2013)grep_it20
2022-08-10Baby’s First Garbage Collector (2013)Latest 20+ point returnbshanks14630
2025-01-09Baby's First Garbage Collector (2013)hhthrowaway123011