On Fri, Aug 27, 2010 at 11:02:38AM -0400, Nat Tuck wrote:
> Even once Tasks really run in parallel, this isn't the implementation
> you'd want for simple ops like addition. This is the old granularity
> of parallelism problem, and the hyper sub you've got there - where you
> don't know how expensive &op is - is sort of a nightmare.

Thanks.  Perl 6 (and Rakudo) already allow for this -- the &hyper sub
we have now is the generic "please perform this in parallel" sub.
It's entirely valid for the compiler to recognize special cases of
parallel simple ops (like addition) and generate even better code
for those.  And the parser/language are well suited for such optimization
as well.

Pm

_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to