"Who Takes Out Your Trash"
summary
Covers concrete garbage-collection methods: reference counting (fast, immediate frees but leaks on cycles and creates dangling-pointer risk), mark-and-sweep (stops program to trace roots; Ruby uses mark-and-sweep with lazy sweeping), copying/scavenging (duplicates live objects between two semispaces so memory stays compact but halves usable heap), and generational collection (Node/V8 copies young objects, promotes survivors; empirical claim: 92–97% of objects die quickly; Python uses thresholds like 700 vs 10 for gen collections).
AI-written summary · about
