<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div><br></div><div>Anyone who can answer my previous question - "what if my greenlet needs to call multiple Web services or that it's a long running one? In those cases the greenlet will be blocked and resumed many times. How does PyPy handle that?"</div><div><br></div><div>Thanks.</div><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Andy &lt;angelflow@yahoo.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Armin Rigo &lt;arigo@tunes.org&gt;<br><b><span style="font-weight: bold;">Cc:</span></b>
 "pypy-dev@python.org" &lt;pypy-dev@python.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, August 21, 2011 2:31 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [pypy-dev] pypy1.6 slow on string-heavy ops<br></font><br><div id="yiv1364400132"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div><span>Thanks Armin.</span></div><div><span><br></span></div><div><span>I dug around and found an email from you titled "Stacklets". Is that the new solution?</span></div><div><span><br></span></div><div><span>If I understand correctly, in this solution a greenlet could only be suspended and resumed once. But what if my greenlet needs to call multiple Web services or that it's a long running one? In those cases the greenlet will be blocked and resumed many times. How does PyPy handle that?</span></div><div><br></div><div
 style="font-size: 12pt; font-family: times, serif; "><div style="font-size: 12pt; font-family: times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Armin Rigo
 &lt;arigo@tunes.org&gt;<br><b><span style="font-weight:bold;">To:</span></b> Andy &lt;angelflow@yahoo.com&gt;<br><b><span style="font-weight:bold;">Cc:</span></b> Jacob Biesinger &lt;jake.biesinger@gmail.com&gt;; "pypy-dev@python.org" &lt;pypy-dev@python.org&gt;<br><b><span style="font-weight:bold;">Sent:</span></b> Saturday, August 20, 2011 5:43 AM<br><b><span style="font-weight:bold;">Subject:</span></b> Re: [pypy-dev] pypy1.6 slow on string-heavy ops<br></font><br>Hi Andy,<br><br>On Fri, Aug 19, 2011 at 5:48 PM, Andy &lt;<a rel="nofollow" ymailto="mailto:angelflow@yahoo.com" target="_blank" href="mailto:angelflow@yahoo.com">angelflow@yahoo.com</a>&gt; wrote:<br>&gt; I remember reading in this list that PyPy-JIT would not work with greenlet<br>&gt; because of how greentlet manipulated the C stack and there wasn't any easy solution.<br><br>No, I think you are confusing two topics.&nbsp; The existing Stackless<br>PyPy, which does no C stack
 manipulation, doesn't work with the
 JIT<br>without a lot of careful work.&nbsp; This solution is deprecated now.&nbsp; The<br>new solution, which does C stack manipulation, works with the JIT out<br>of the box.&nbsp; Both solutions are "implementation details" only; you get<br>the same tasklet/greenlet API to work with.<br><br>&gt; So will PyPy JIT work with gevent which is based on libevent (and soon to be<br>&gt; libev)? Any target release date?<br><br>Yes.&nbsp; The next release is likely to be 1.6.1 soonish.<br><br><br>A bientôt,<br><br>Armin.<br><br><br></div></div></div></div><br>_______________________________________________<br>pypy-dev mailing list<br><a ymailto="mailto:pypy-dev@python.org" href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br><br><br></div></div></div></body></html>