Hacker News new | ask | show | jobs
by spartango 4835 days ago
Woah, that streaming abstraction looks really slick, especially given that it can be automatically parallelized.

The idea of doing a one-line parallel map-reduce that is

    collection.stream().parallel().map(operation1).reduce(operation2); 
is surprisingly cool imo. And the availability of streams across the collections framework allows that they can be used in routine programming.
3 comments

All I ever heard about with Java 8 was lambdas (which is understandably the big name new feature), but streams, in my opinion, are just as exciting. Unlike lambdas and they're new syntax, streams seem like something any developer can quickly pick up and start taking advantage of.
I think it gets even easier than that since stream/parallel are the basic calls:

  collection.parallel().map(operation1).reduce(operation2);
Yep, Java 8 starts to look a lot like Scala
It looks like C# 3 (2007)
Many C# features look a lot like Scala features (2003/4)