<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 28, 2014 at 3:59 PM, Walter Bright <span dir="ltr"><<a href="mailto:walter@digitalmars.com" target="_blank">walter@digitalmars.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The assumption is that D doesn't have them. But is that assumption true? There's been a lot of work on concurrent programming in D - how close are we to having a workalike to goroutines? Is it just a documentation issue?<br>
</blockquote><div><br></div><div>Some time ago I had tried to mimic a example of Gorutines through the D provided tools. The original Go code is no longer available, but IIRC the std.concurrency version[1] was fairly close to what was done in Go. I also wrote the same concept using std.parallelism[2]. Both of the programs have been updated for the new std.datetime, though the concurrency version won't compile because receive is unable to deduce parameter types.<br>
<br></div><div>rdmd callcenter.d 3 10 10 10<br></div><div><br>1. <a href="https://gist.github.com/JesseKPhillips/773979">https://gist.github.com/JesseKPhillips/773979</a><br>2. <a href="https://gist.github.com/JesseKPhillips/774983">https://gist.github.com/JesseKPhillips/774983</a><br>
</div></div><br>-- <br>Jesse Phillips
</div></div>