scorn wrote:
> Am 08.01.2011 08:47, schrieb "Jérôme M. Berger":
>> You mean like this:
>> foreach(i; pool.parallel( iota(squares.length), 100)) {
>> // Iterate over squares using work units of size 100.
>> squares[i] = i * i;
>> }
>
> Yes, exactly like that! (Thanks for the hint.)
>
>> It is currently under review for D2:
>> http://cis.jhu.edu/~dsimcha/d/phobos/std_parallelism.html and
>> http://dsource.org/projects/scrapple/browser/trunk/parallelFuture/std_parallelism.d
>>
>
> Is it already usable ?
>
> If yes, then it would really be a reason for me to switch to D2 now.
I believe so although I have not tried it myself.
Jerome
--
mailto:[email protected]
http://jeberger.free.fr
Jabber: [email protected]
signature.asc
Description: OpenPGP digital signature
