<story><title>Concurrency in Python: CSP and Coroutines</title><url>https://bytes.yingw787.com/posts/2019/02/09/concurrency_with_python_csp_and_coroutines/</url></story><parent_chain></parent_chain><comment><author>deckarep</author><text>About 6 or 7 years ago I was searching for a language that had great concurrency built in and a sane enough model of concurrency that would allow me to get things done.&lt;p&gt;Eventually I found and fell in love with gevent because I could write fairly straightforward code in a synchronous fashion and reason about the code a lot easier than other models. But then I found some warts with gevent: what about good community support? What about exploiting parallelism? Monkey patching 3rd party libs is a bit ugly and not 100% without faults.&lt;p&gt;So imagine how I felt when I found that Go offers this model of concurrency CSP with support for parallelism due to the M to N threading model. Also a not quite but close enough Python looking syntax and at that point I never looked back.&lt;p&gt;Sure there other models of concurrency and other languages that are also proving to be useful. But Go has been a good bet...at least for now.&lt;p&gt;And I know this is controversial...but Go’s time is running out...other languages are getting there with more advanced support for asynchronous programming...so I imagine in due time I’ll be onto the next thing.</text></comment>
<story><title>Concurrency in Python: CSP and Coroutines</title><url>https://bytes.yingw787.com/posts/2019/02/09/concurrency_with_python_csp_and_coroutines/</url></story><parent_chain></parent_chain><comment><author>anaphor</author><text>Check out &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.pykka.org&amp;#x2F;en&amp;#x2F;latest&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.pykka.org&amp;#x2F;en&amp;#x2F;latest&amp;#x2F;&lt;/a&gt; as well which is based on the actor model. My understanding is that it&amp;#x27;s used by &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.mopidy.com&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.mopidy.com&amp;#x2F;&lt;/a&gt; and actively developed by them.</text></comment>