On 7/14/2018 5:40 AM, Antoine Pitrou wrote:
On Fri, 13 Jul 2018 18:22:24 -0600
Eric Snow <[email protected]>
wrote:
2. Give up on making things work inside the same OS process and rather
focus on implementing better abstractions on top of the existing
multiprocessing API so that the actor model is easier to program
against. For example, providing some notion of Channels to communicate
between lines of execution, a way to monitor the number of Messages
waiting in each channel for throughput profiling and diagnostics,
Supervision, etc. In particular I could do this by using an existing
library like Pykka or Thespian and extending it where necessary.
It may worth a shot. You should ask Davin Potts (CC'ed) about this.
We discussed this a little at PyCon. I'm sure he'd welcome help in
improving the multiprocessing module.
Davin has been mostly inactive. I'm the de facto maintainer for
multiprocessing.
It's good to know that there is an active coredev who can be added as
nosy on multiprocessing issues. The multiprocessing line in the
Expert's Index,
https://devguide.python.org/experts/
has Davin *ed (assign issues to him) and you not (nosy only). Perhaps
Davin should be un-starred.
Some time ago, on pydev list, you suggested that the solution to IDLE's
problems with subprocess and sockets might be to use multiprocessing and
pipes. I noticed then that there were numerous bug report and little
activity and wondered then how usable multiprocessing was in practice.
Checking again, there are 52 open behavior and 6 open crash issues with
'multiprocessing' in the title. The must severe one for IDLE that I
noticed is #33111: importing tkinter and running multiprocessing on
MacOS does not seem to work.
This week I (re)read the main multiprocessing doc chapter. The main
issue I saw is 'Beware of replacing sys.stdin with a “file like
object”'. I don't *think* that this is a showstopper, but a minimal
failing example would help to be sure.
--
Terry Jan Reedy
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/