Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on DCompute: GPGPU with Native D for OpenCL and CUDA. Parent comment
Foo[] foo = ...;
foreach(f; foo) { f.bar.baz.quux; }
and the computation is parallelisable then you can write
import std.parallelism; foreach(f; parallel(foo)) { f.bar.baz.quux; }
and it will parallelised across threads.
I guess std.parallelism's parallel might be more analogous to an "instance" of an executor.
Foo[] foo = ...;
foreach(f; foo) { f.bar.baz.quux; }
and the computation is parallelisable then you can write
import std.parallelism; foreach(f; parallel(foo)) { f.bar.baz.quux; }
and it will parallelised across threads.
I guess std.parallelism's parallel might be more analogous to an "instance" of an executor.