D and microservices
Martin Nowak via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 7 20:12:02 PDT 2015
On Wednesday, 7 October 2015 at 19:58:55 UTC, Ola Fosheim Grøstad
wrote:
> If C++17 does stackless coroutines right then it probably will
> surpass both Go and D in terms of memory locality,
> initialization performance and memory usage; and therefore
> throughput as well.
We might be able to reuse the existing delegate capture mechanism
to create continuations.
Then await would "simply" rewrite the rest of the body as
delegate, similar to how the foreach body can be transformed into
a delegate.
There is some use-case for HPC code where stackless coroutines
make a huge differences (used with a work stealing scheduler),
for basic networking code it will only be a small difference.
More information about the Digitalmars-d
mailing list