Parallel-safe lambdas
Rémi Forax
forax at univ-mlv.fr
Thu Feb 11 02:17:13 PST 2010
Olivier and Stephen,
ParallelArray is full of predicates, filters and al.
see http://www.ibm.com/developerworks/java/library/j-jtp03048.html
I don't understand why targeting ParallelArray API will
make lambdas unusable elsewhere ?
Rémi
Le 11/02/2010 10:57, Olivier Allouch a écrit :
> Ouch !
>
> I, like Stephen Colebourne, am surprised. I thought the goal was to add
> closures to the language, not to a single library.
> I can tell you all the articles and tutorials that will come after the
> inclusion of closures will be about predicates and
> forEach/map/filter-like examples.
> I understand more why GUI coding is never mentioned here.
> The real issue Java has isn't parallel execution (I'll probably never
> use it), it's the lack of closures in the everyday coding.
>
> Olivier Allouch
>
> Le 11/02/2010 04:29, Alex Buckley a écrit :
>
>> You've set up quite a strawman. Since the draft Lambda spec doesn't
>> require import of variables, doesn't ban use of variables in the lexical
>> scopem and doesn't say anything about copying locals, I don't know why
>> you're wasting time with fake rules that do.
>>
>> Your experience with Apache Commons' functors would be valuable to this
>> list. But if all you're going to do is argue with the goal of the
>> project, unsubscribe.
>>
>> Alex
>>
>>
>>
>
>
More information about the lambda-dev
mailing list