Who Takes Out Your Trash
summary
Explains how a garbage collector actually works by showing three jobs: allocate memory, find unreachable objects, and free them, then walks three concrete strategies: reference counting (used by Python but fails on cycles), mark-and-sweep (stops the world but finds cycles), and copying (compacts memory at the cost of halving usable heap). Adds generational GC detail with Python using three generations and about 700 new-object threshold for the youngest generation.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:36Magic
- 1:33Garbage Collector
- 3:29Reference Counting
- 5:14Cycles
- 7:13Marksweep
- 10:01Copying
- 12:06generational garbage collection
- 15:57conclusion








