News for hackers. Stuff that matters.
Re:Haskell vs. Clojure (2014) by catnaroek on Thursday September 15, 2016 @03:28AM (#12504074)
Is it possible to make truly persistent data structures in Lisp, rather than just persistent by convention? Here are some benefits that you can only get if the language implementation knows your data structures are immutable:

(0) The compiler can automatically perform optimizations like fusing small nodes and hash consing.

(1) The garbage collector can take advantage of the fact that traversing (the immutable portion of) the heap sequentially produces a topological sorting of the object graph.

There are no comments on this comment yet.