Immutable Data Structures and why You want them
summary
A small Rust library named immutable.rs implements persistent collections (HAMT-like maps, vectors inspired by Rich Hickey and Phil Bagwell, and RRB vectors planned) on crates io and the website, trading a modest memory overhead for structural sharing. Benchmarks show cloning Vec stays faster until a couple hundred elements, but using transient mutability via make_mut on Arc lets updates be mutated in-place when unshared so immutable APIs perform like mutable ones. Some advanced concatenation features remain unimplemented.
AI-written summary · about
chapters (12)
- 0:00Intro
- 1:23What is a data structure
- 6:56Motorisation
- 8:45Lisp
- 11:21Cons
- 13:36Lookup Trees
- 16:22Bee Trees
- 18:16Search Trees
- 19:59Data Structures
- 22:39Relaxed Radix
- 24:04Why are they useful
- 25:48Why are they faster








