News for hackers. Stuff that matters.
Re:Java 8: Replace traditional for loops with IntStreams by tsmarsh on Wednesday June 10, 2015 @08:36AM (#9691596)
I know backward compatibility with Java 5 is important for the clojure world, but I would love to see streams and invoke dynamic implemented in a "Clojure 2.0".

I would love to do it myself, if someone would pay me to do it :)

Re:Java 8: Replace traditional for loops with IntStreams by pron on Wednesday June 10, 2015 @09:02AM (#9691772)
Streams are an API built on top of the Spliterator[1] abstraction, which basically gives a collection the option of partitioning an iterator into two, allowing parallel traversal of both partitions and thus parallelization via fork/join. Clojure already does something very similar with reducers[2], which are pretty much the same as Java streams, but implementing the reducer protocol to employ spliterators should be rather simple.

[1]: https://docs.oracle.com/javase/8/docs/api/java/util/Splitera...

[2]: http://clojure.org/reducers

Re:Java 8: Replace traditional for loops with IntStreams by WalterGR on Wednesday June 10, 2015 @09:31AM (#9691971)

    I know backward compatibility with Java 5 is
    important for the clojure world...
Why is that? (I googled but didn't find anything relevant.)
Re:Java 8: Replace traditional for loops with IntStreams by djpowell on Wednesday June 10, 2015 @11:43AM (#9693023)
Since Clojure 1.6, Java 6 is the minimum requirement.

I'm sure there is a discussion somewhere, but I expect that there are quite a few people who run Java on commercial J2EE app servers and the like which don't officially support newer JDKs.