<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature">On Wed, Mar 18, 2015 at 1:09 AM, Paulo  Pinto via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On Tuesday, 17 March 2015 at 20:50:51 UTC, Bienlein wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Go is only a CSP-like, it isn't CSP. cf Python-CSP and PyCSP, not to<br>
mention JCSP and GPars.<br>
</blockquote>
<br>
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...<span style="color:rgb(34,34,34)"> </span></blockquote></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
What about using a JVM with green threads support or Quasar, wouldn't it be more comparable?<br>
<br>
--<br>
Paulo<br>
</blockquote></div><br></div><div class="gmail_extra">It seems it is the same issue. From the Quasar user manual (<a href="http://docs.paralleluniverse.co/quasar/">http://docs.paralleluniverse.co/quasar/</a>):</div><div class="gmail_extra"><br></div><div class="gmail_extra">Fibers are not meant to replace threads in all circumstances. A fiber 
should be used when its body (the code it executes) blocks very often 
waiting on other fibers (e.g. waiting for messages sent by other fibers 
on a channel, or waiting for the value of a dataflow-variable). For 
long-running computations that rarely block, traditional threads are 
preferable. Fortunately, as we shall see, fibers and threads 
interoperate very well.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">--</div><div class="gmail_extra">Ziad</div><div class="gmail_extra"><br></div></div>