gsoc_threads branch feedback
Patrick R. Michaud
pmichaud at pobox.com
Sun Aug 29 16:29:37 UTC 2010
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
More information about the parrot-dev
mailing list