What are the real advantages that D offers in multithreading?

Brad Anderson via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 28 12:37:21 PST 2016


On Thursday, 28 January 2016 at 17:21:21 UTC, Chris Wright wrote:
> On Wed, 27 Jan 2016 17:30:28 +0000, Brad Anderson wrote:
>
>> Yeah, boost can do fibers. ASIO has clever/hacky "stackless 
>> coroutines" and C++17 is going to add "stackless resumable 
>> functions" for async/await. D is about to lose a competitive 
>> advantage here.
>
> I looked at those stackless coroutines. They're nowhere near 
> good enough for what I wanted to do. You can't use them for a 
> vibe-like framework. But they're still called coroutines, so 
> D's going to lose a marketing advantage.

They aren't fit for every task, of course.

They've been discussed here on the NG in the past: 
http://forum.dlang.org/thread/izosaywbnlxnbzyhjbnu@forum.dlang.org


More information about the Digitalmars-d mailing list