M:N thread multiplexing

Bienlein via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 30 12:29:40 PDT 2017


On Sunday, 30 July 2017 at 13:35:18 UTC, Poyeyo wrote:
> Reading this article: 
> http://www.evanmiller.org/why-im-learning-perl-6.html
> makes me curious about the state of Dlang's M:N thread 
> multiplexing.
>
> Quoting the article:
> "if you want M:N thread multiplexing your options today are 
> precisely Erlang, Go, .NET, and Perl 6."
>
> Is it possible to add D to this list of languages mentioned in 
> that article?

Whenever I asked about CSP in D I got the answer to consider 
vibe.d. D has fibers. In addition to have something like green 
threads, it would need a mechanism that a fiber that is going to 
be blocked when taking from an empty channel is detached from 
that channel and assigned to one that is not empty.

Not sure I agree that .NET has m:n threads in sense of CSP/green 
threads. About Perl 6 I don't know. Java has it as well through 
Quasar (http://docs.paralleluniverse.co/quasar/) and the JVM in 
general through Coroutines in Kotlin 
(https://kotlinlang.org/docs/reference/coroutines.html)


More information about the Digitalmars-d mailing list