Re:Why did Clojure gain so much popularity?
by didibus on Tuesday April 23, 2019 @04:47PM
(#19732674)
Ya, this has been completely fixed.
There's now fully lazy as well as fully strict variants of all sequence functions.
What you want to look into are transducers: https://clojure.org/reference/transducers
Also, the lazy operations were made batching. So they are better optimized now in memory and performance.
I know the problem, and I've danced around this same issue in things like Haskell with strictness annotations, and I've run into the same problem in R, but I'd like to just be able to read and parse a ~1GB CSV file without blowing out RAM with a giant list of thunks.
This was many years ago now, so maybe they've fixed it, but I'm tired of fighting that particular battle.