<a href="https://trio.readthedocs.io/en/latest/reference-core.html#synchronizing-and-communicating-between-tasks">https://trio.readthedocs.io/en/latest/reference-core.html#synchronizing-and-communicating-between-tasks</a><div><br></div><div><a href="https://pypi.org/search/?q=Actor+model">https://pypi.org/search/?q=Actor+model</a></div><div><br></div><div><a href="https://en.wikipedia.org/wiki/Actor_model">https://en.wikipedia.org/wiki/Actor_model</a></div><div><br></div><div><a href="https://en.wikipedia.org/wiki/Bulk_synchronous_parallel#The_model">https://en.wikipedia.org/wiki/Bulk_synchronous_parallel#The_model</a></div><div><br></div><div><br><br>On Friday, April 26, 2019, Eric Snow <<a href="mailto:ericsnowcurrently@gmail.com">ericsnowcurrently@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Mar 31, 2019 at 9:19 AM Aratz Manterola Lasa via Python-Dev<br>
<<a href="mailto:python-dev@python.org">python-dev@python.org</a>> wrote:<br>
> I was wondering if there was any Python project aiming to implement the actor model for python concurrency.<br>
<br>
As far as the standard library goes, the explicitly supported<br>
concurrency models are: threading, multiprocessing, and async/await.<br>
Between these (and a few other parts provided by Python) anyone can<br>
build libraries that emulate various other concurrency models.  Such<br>
libraries exist on the cheeseshop (PyPI), though I don't know about<br>
packages for the actor model specifically.  I recommend searching<br>
there for such packages.  If you don't find one then perhaps you've<br>
found a new project to start. :)<br>
<br>
Also, I have a proposal [1] for Python 3.9 that provides first class<br>
[low level] support for concurrency models like CSP and the actor<br>
model.  This is done with multiple [mostly] isolated interpreters per<br>
process and with basic "channels" for safely passing messages between<br>
them.  While the proposed library is intended to be useful on its own,<br>
it is also intended to provide effective building blocks for library<br>
authors.  Note that the PEP has not been accepted and is not<br>
guaranteed to be accepted (though I'm hopeful).<br>
<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regardless, consider posting to <a href="mailto:python-list@python.org">python-list@python.org</a> for feedback<br>
from the broader Python community.  This list is specifically used for<br>
the development of the Python language itself.  Thanks!</blockquote><div><br></div><div>Or <a href="mailto:python-ideas@python.org">python-ideas@python.org</a> ,</div><div>though I'm not sure what would be needed from core Python or stdlib to create another actor model abstraction on top of the actual concurrency primitives.</div><div><br></div><div>Truly functional actors are slow when/because the memory is not shared inter-process</div><div><br></div><div><a href="https://arrow.apache.org/docs/python/memory.html#referencing-and-allocating-memory">https://arrow.apache.org/docs/python/memory.html#referencing-and-allocating-memory</a><br></div><div><br></div><div><a href="https://arrow.apache.org/docs/python/ipc.html#arbitrary-object-serialization">https://arrow.apache.org/docs/python/ipc.html#arbitrary-object-serialization</a><br></div><div><br></div><div><a href="https://www.python.org/dev/peps/pep-0554/#interpreter-isolation">https://www.python.org/dev/peps/pep-0554/#interpreter-isolation</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-eric<br>
<br>
<br>
[1] <a href="https://www.python.org/dev/peps/pep-0554/" target="_blank">https://www.python.org/dev/<wbr>peps/pep-0554/</a></blockquote><div><br></div><div>"PEP 554 -- Multiple Interpreters in the Stdlib"</div><div><a href="https://www.python.org/dev/peps/pep-0554/">https://www.python.org/dev/peps/pep-0554/</a><br></div><div><br></div><div>Is there / are there Issues, PRs, and Mailing List Threads regarding the status of this proposal?</div><div><br></div><div>So sorry to interrupt,</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/wes.turner%40gmail.com" target="_blank">https://mail.python.org/<wbr>mailman/options/python-dev/<wbr>wes.turner%40gmail.com</a><br>
</blockquote></div>