News for hackers. Stuff that matters.
Re:Java 7 Fork-Join Calamity by alrex021 on Wednesday July 06, 2011 @05:31PM (#2735974)
My personal disappointment is the lack of expressiveness.

Here is a C# LINQ example:

  using System.Linq;
  files.AsParallel().ForAll(file => ProcessXML(file));
To achieve something similar in Java 7, one could start on perhaps with improving the java.util.Collection interface, or appropriate abstract children, by introducing the asParallel method that the Collection implementations could implement. One obvious problem I see is the lack of lambda support in Java 7, so one would have to pass an anonymous class into forXXX(..) instead which is a bit more clunky.
Re:Java 7 Fork-Join Calamity by warmfuzzykitten on Wednesday July 06, 2011 @05:43PM (#2736029)
That falls under project lambda (and corresponding work on the collection classes), which won't appear until Java 8. I agree, it would have been better sooner.
Re:Java 7 Fork-Join Calamity by wmf on Wednesday July 06, 2011 @06:57PM (#2736343)
It doesn't seem like a good idea to ship a "bad" parallel framework in Java 7 and then ship the "good" one two years later in Java 8.