groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russel Winder <rus...@winder.org.uk>
Subject Re: GPars 2 Stuff
Date Mon, 08 Jan 2018 10:23:29 GMT
On Sun, 2018-01-07 at 09:14 -0700, Daniel Sun wrote:
> Hi Russel,
> 
>        `[1, 2, 3, 4, 5].parallel.reduce{a, b -> Math.min(a, b)}` is much
> groovier than ` [1, 2, 3, 4, 5].parallelStream().reduce{a, b -> Math.min(a,
> b)}.get()`, so I hope the original API can be kept and its implementation
> can base on Java8's functionality.

I remain unconvinced this is the right path. However Szymon Stępniak provided
a pull request 2017-07 to begin patching GPars 2.X to have the old
ParallelArray API from GPars 1.X, and I have now committed this.

NB Given I am for removal of all the ParallelArray stuff, it is up to those
who want this feature to provide pull requests to make it work! 

-- 
Russel.
==========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

Mime
View raw message