De-chunkifying Sequences in Clojure
blog.fogus.me
De-chunkifying Sequences in Clojure
1–7 of 7 posts
Re: De-chunkifying Sequences in Clojure
#2Re: De-chunkifying Sequences in Clojure
#3Re: De-chunkifying Sequences in Clojure
#4wouldn't it be better to have the intuitive behaviour by default, and the space-optimised behaviour as a configurable option?
Rich (creator of Clojure) addressed concerns similar to yours in this reddit discussion:
http://www.reddit.com/r/programming/comments/afyav/clojure_1...
He also discusses chunked sequences in a video here (near the bottom of the list, the sound is pretty bad):
Re: De-chunkifying Sequences in Clojure
#5wouldn't it be better to have the intuitive behaviour by default, and the space-optimised behaviour as a configurable option?
The chunking behaviour is transparent unless you have a side-effect in your sequence function, which isn't sensible anyway. The chunked behaviour performs significantly better for the majority of cases which is why it's on by default, I believe. Rich (creator of Clojure) addressed concerns similar to yours in this reddit discussion: http://www.reddit.com/r/programming/comments/afyav/clojure_1... He also discusses chu…
Only if you believe the side effect of using the CPU doesn't count.
Re: De-chunkifying Sequences in Clojure
#6wouldn't it be better to have the intuitive behaviour by default, and the space-optimised behaviour as a configurable option?
The chunking behaviour is transparent unless you have a side-effect in your sequence function, which isn't sensible anyway. The chunked behaviour performs significantly better for the majority of cases which is why it's on by default, I believe. Rich (creator of Clojure) addressed concerns similar to yours in this reddit discussion: http://www.reddit.com/r/programming/comments/afyav/clojure_1... He also discusses chu…
my point is that telling your users they aren't sensible quickly becomes tedious (and tends to annoy them).
Re: De-chunkifying Sequences in Clojure
#7wouldn't it be better to have the intuitive behaviour by default, and the space-optimised behaviour as a configurable option?