[concurrency-interest] ParallelArray updates du jour

Doug Lea dl at cs.oswego.edu
Thu Jan 17 19:47:36 EST 2008


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

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


More information about the Concurrency-interest mailing list