std.parallelism equivalents for posix fork and multi-machine processing

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Thu May 14 09:33:44 PDT 2015


On Wednesday, 13 May 2015 at 20:34:24 UTC, weaselcat wrote:
> On Wednesday, 13 May 2015 at 20:28:02 UTC, Laeeth Isharc wrote:
>> Is there value to having equivalents to the std.parallelism 
>> approach that works with processes rather than threads, and 
>> makes it easy to manage tasks over multiple machines?
>
> I'm not sure if you're asking because of this thread, but see
>
> http://forum.dlang.org/thread/tczkndtepnvppggzmews@forum.dlang.org#post-tczkndtepnvppggzmews:40forum.dlang.org
>
> python outperforming D because it doesn't have to deal with 
> synchronization headaches. I found D to be way faster when 
> reimplemented with fork, but having to use the stdc API is 
> ugly(IMO)

It was also easy to get D very fast by just being a little more 
eager with IO and reducing the enormous number of little 
allocations being made.


More information about the Digitalmars-d mailing list