cumulate (original) (raw)
Brian Goetz brian.goetz at oracle.com
Fri Dec 21 13:31:19 PST 2012
- Previous message: cumulate
- Next message: cumulate
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It's gone. (Well, not gone. Mercurial history is still there.)
I propose this as the replacement:
In Arrays: void parallelPrefix(T[], int offset, int length, BinaryOperator); void parallelPrefix(int[], int offset, int length, IntBinaryOperator); void parallelPrefix(long[], int offset, int length, LongBinaryOperator); void parallelPrefix(double[], int offset, int length, DoubleBinaryOperator);
plus trampolines for the offset=0, length=array.length case.
Doug already has code that is almost identical to this. Maybe he will contribute it :)
On 12/21/2012 4:14 PM, Remi Forax wrote:
On 12/21/2012 09:55 PM, Kevin Bourrillion wrote:
+1 (of course) yes, +1 too. Rémi
On Fri, Dec 21, 2012 at 12:53 PM, Brian Goetz <brian.goetz at oracle.com_ _<mailto:brian.goetz at oracle.com>> wrote: After an offline conversation with Doug, we're considering ditching cumulate from Streams. Reasons include: 1. Everybody looks at it and says WTF? And then has a YAGNI fit about throwing the kitchen sink into this API. 2. The form in which cumulation is exposed here -- stream in, stream out -- is really all that useful to algorithms that need it. It would be better to expose as an operation on Arrays instead.
-- Kevin Bourrillion | Java Librarian | Google, Inc. |kevinb at google.com <mailto:kevinb at google.com>
- Previous message: cumulate
- Next message: cumulate
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-experts mailing list