Re:Pixie – A small, fast, native Lisp
by inconclusive on Tuesday January 17, 2017 @07:34PM
(#13422966)
How is the cost of copying close to zero or not apparent?
[ Parent
| on HN ]
The data structures in Clojure are built on shallow 32-way trees. When you "change" a map or a vector, the algorithm only copies from the root node down to the parent of the leaf you're changing. That's log32(N) copied nodes in a tree of N nodes total.
Because persistent data structures that use structural sharing.