<div dir="ltr">Sorry Bruce,<br><br>When can I read this PEP ? I'm interesting<br><br>Bye<br><br><div class="gmail_quote">On Mon, Aug 25, 2008 at 7:15 PM, Bruce Frederiksen <span dir="ltr"><<a href="mailto:is_this@visible.com">is_this@visible.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I wanted to make everybody aware that I've posted a (rather long and<br>
involved) PEP proposal for adding micro-threading to Python on<br>
python-ideas for feedback and review.<br>
<br>
In a nutshell, this proposal implements the Twisted Deferred/Reactor at<br>
the C level so that the Python programmer gets the advantages that Twisted<br>
offers without having to write their code in an event driven style.  Thus,<br>
legacy Python code not written in the Twisted style (Django, TurboGears,<br>
WSGI apps) will gain the benefits of Twisted with almost no additional<br>
work.<br>
<br>
This PEP provides similar benefits to GUI toolkits where, again, Python<br>
programmers have been faced with event driven programming.  So using this<br>
PEP, GUI toolkits could hide this event driven programming from the Python<br>
programmer, making GUI programming much easier.  For example, you would no<br>
longer have to use a modal dialog just to make the programming easier.<br>
<br>
The C-level Deferreds and Reactor are not made visible to the Python<br>
programmer (as they are in Twisted).<br>
<br>
Rather, what is visible is a very simple micro-thread that allows for<br>
"start_and_forget" threads, "parallel" threads (where you're only<br>
interested in the final return value) and fully cooperative threads<br>
communicating over micro-pipes (which, BTW, gives us a new way to write<br>
generators that allows one generator to simply call another one to have<br>
the second generator's output included with its own output without having<br>
to capture and pass back values).<br>
<br>
As there is a great deal of traffic on comp.lang.python, I don't expect to<br>
be able to keep up with the posts here and would prefer to discuss this<br>
on python-ideas...<br>
<br>
If there is any interest in this, please let me know!  If I don't see any<br>
interest, I'll assume that it's not solving a real problem and will let it<br>
quietly die on the vine...<br>
<br>
Thank you for your attention!<br>
<br>
-bruce<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Pau Freixes<br>Linux GNU/User<br>
</div>