[concurrency-interest] ParallelArray updates du jour

Peter Kovacs peter.kovacs.1.0rc at gmail.com
Fri Jan 18 18:25:16 EST 2008

On Jan 18, 2008 1:47 AM, Doug Lea <dl at cs.oswego.edu> wrote:

> For those playing along. (And if you are not, why not?! :-)

Hearing your friendly call, I started to try making sense of the fork/join
stuff and found that the only comprehensive source of information beyond the
very basics (http://jcp.org/en/jsr/detail?id=166) is the draft API. I wonder
if there is any source of intermediary information available -- intermediary
between the terse mission statement in
http://jcp.org/en/jsr/detail?id=166and the complex draft API --
explaining how the purpose stated in the
mission statement is met by the API and its implementation.

In more concrete terms: I feel I could make good use of a high-level
explanation of how the new API is helping me (the "concurrency dummy") solve
problems more easily and more safely than the already existing concurrency
infrastructure. (I am not even sure which is the head and which is the tail
of this API beast.)


> 1. Prefix classes have been promoted to top-level classes
>    (as in ParallelArrayWithFilter, not ParallelArray.WithFilter).
>    This mainly enables the following improvements (*),
>    without affecting (normal) usages (except maybe Kaspar's (sorry!)).
> 2. Arguments to binary operations (withMapping etc) may be
>    any kind of bounded/filtered/mapped ParallelArray,
>    not just the plain kind.
> 3. Aggregate Operations that previously returned void now
>    "return this", which enables nicer usage usage;
>    as in:  pa.replaceWithMapping(f).sort(); (Thanks to Tim
>    for forcing me to do this.)
> Comments welcome as always.
> Next up, and the last major aspects of planned functionality, are
> operations involving binary predicates; as in finding
> all elements such that a[i] == b[i] (ParallelArrays a and b).
> (*) In case you are curious, try compiling this
>     class PA extends PA.WithBounds { static class WithBounds {} }
> All at the usual places:
> API specs:  http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166ydocs/
> jar file: http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166y.jar
> Browsable CVS sources:
> http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166y/
> -Doug
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20080119/51d02e28/attachment.html 

More information about the Concurrency-interest mailing list