Java 8 "automatically-parallelizable bulk-data operations"

Aleksey Shipilev aleksey.shipilev at oracle.com
Tue Aug 7 02:35:00 PDT 2012


Hi again, Piotr!

In current branch, the connection of _parallel_ operations to the
libraries is not yet implemented. Look for the implementors of
ParallelIterable interface. I think the only thing you can use at this
point is Arrays.parallel().

There is pending effort to retrofit and/or adapt existing collections in
"it2-bootstrap" branch, but that is the pending work.

-Aleksey.

On 08/07/2012 01:25 PM, Piotr Bzdyl wrote:
> This is my first post to this list so "Hello" to everyone!
> 
> 
> As you can see below, I was trying to find out what bulk operations would
> be automatically parallelizable in Java 8 (as stated by JSR-337 in the
> Performance section). I was forwarded to lambda mailing list as the
> development is being done by lambda project group.
> 
> Could anybody shed some light on this topic? I checked the lambda/lambda
> source code but couldn't find any parallel implementation of those bulk
> operations.
> 
> Best regards,
> Piotr
> 
> On Tue, Aug 7, 2012 at 11:20 AM, Piotr Bzdyl <piotr at bzdyl.net> wrote:
> 
>> Thanks Aleksey for the response. I checked the source code from
>> lambda/lambda forest and binary builds and I could indeed find bulk
>> operations for collections but I was unable to find any parallel one. I
>> will try to ask on the lambda or jdk8 mailing lists.
>>
>> Piotr
>>
>>
>> On Tue, Jul 31, 2012 at 2:13 PM, Aleksey Shipilev <
>> aleksey.shipilev at gmail.com> wrote:
>>
>>> Hi Piotr,
>>>
>>> That means operations on standard collections as well [1]. This
>>> piggybacks on lambda-fication of collections [2]. The development is
>>> done under lambda project umbrella [3], the prototype for bulk
>>> operations is available in lambda/lambda forest in OpenJDK, or binary
>>> builds at [3] as well.
>>>
>>> Please join the fun at lambda-dev@ if you are interested.
>>>
>>> -Aleksey.
>>>
>>> [1] http://openjdk.java.net/jeps/107
>>> [2] http://openjdk.java.net/jeps/109
>>> [3] http://openjdk.java.net/projects/lambda/
>>> [4] http://mail.openjdk.java.net/mailman/listinfo/lambda-dev
>>>
>>> On Tue, Jul 31, 2012 at 1:54 PM, Piotr Bzdyl <piotr at bzdyl.net> wrote:
>>>> Hello,
>>>>
>>>> I tried to google it but could not find anything specific.
>>>>
>>>> Java 8 release contents JSR-337 mentiones in the Performance section:
>>>>
>>>> "In this release we will take another big step by enhancing the
>>> Collections
>>>> Framework and related APIs to support automatically-parallelizable
>>> bulk-data
>>>> operations such as filter, map, and reduce".
>>>>
>>>> Does it mean just ParallelArray or also implementations of other
>>> collections
>>>> such as lists, sets and maps?
>>>>
>>>> Best regards,
>>>> Piotr
>>>>
>>>> _______________________________________________
>>>> Concurrency-interest mailing list
>>>> Concurrency-interest at cs.oswego.edu
>>>> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>>>>
>>>
>>
>>
> 



More information about the lambda-dev mailing list