in reply to Re^2: Parrot, threads & fears for the future.
in thread Parrot, threads & fears for the future.
You can only transparently paralelize map{} if the executed block is side-effect-free. Perl is far too dynamic for the compiler/optimizer to safely check that and you might very well want to have side-effects in your map{}s so you'd have to have two map{}s, a paralellisable one and a garanteed-to-be-serial one. It's one thing to paralelize a purely functional, side-effect free language and to paralelize something that may do whatever it bloody wishes. Everything comes for a prize, even freedom.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Parrot, threads & fears for the future.
by Corion (Patriarch) on Oct 23, 2006 at 13:11 UTC | |
Re^4: Parrot, threads & fears for the future.
by tphyahoo (Vicar) on Oct 23, 2006 at 15:10 UTC | |
Re^4: Parrot, threads & fears for the future.
by AK108 (Friar) on Oct 25, 2006 at 23:43 UTC | |
by Jenda (Abbot) on Oct 26, 2006 at 10:34 UTC | |
by AK108 (Friar) on Oct 26, 2006 at 18:08 UTC | |
by Jenda (Abbot) on Oct 26, 2006 at 21:57 UTC | |
by AK108 (Friar) on Oct 27, 2006 at 16:34 UTC |
In Section
Meditations