Immutable Data in the Real World
summary
Argues that immutability buys more than thread safety: failure atomicity (one-time invariant checks), safe memoization, and simpler composition. Shows real implementations: structural sharing instead of copy-on-write, hash-array mapped trie with 32-way branching (never more than six nodes deep for under a billion elements), and examples where immutable wins—Joda Time beats Java time. Points to systems that leverage immutable events: Git, Kafka/Samza, Datomic/EventStore, and front-end uses in React/Om and Elm, while warning about GC and pathological tree rebalancing.
AI-written summary · about
