A few notes on choosing between Go and D for a quick project

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 17 15:30:36 PDT 2015


On 3/17/15 1:50 PM, Bienlein wrote:
>
>> Go is only a CSP-like, it isn't CSP. cf Python-CSP and PyCSP, not to
>> mention JCSP and GPars.
>
> I'm not really sure whether this can be put exactly that way. On a
> machine with 4 GB RAM you can spawn about 80.000 goroutines (aka green
> threads). Let's say each threads calculates a large fibonacci number. If
> the fibonacci calculation yields the processor frequently all 80.000 run
> seamingly in parallel and return their result almost "at the same time".

How many physical threads would the 80K goroutines create? -- Andrei




More information about the Digitalmars-d mailing list