News for hackers. Stuff that matters.
Re:Why did Clojure gain so much popularity? by oddthink on Tuesday April 23, 2019 @09:08AM (#19728193)
I don't know if JVM is a problem; the issue that caught me in my few-weeks of experimenting with the language was the lazy semantics of sequences.

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.

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.