<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Lars:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span><div>>Have you considered <a target="_blank" href="http://bottle.py/" style="color: blue; text-decoration: underline !important; cursor: text !important; ">bottle.py</a>?<div><br></div><div>>http://www.slideshare.net/r1chardj0n3s/web-microframework-battle (although the weighing is pretty subjective i guess).<br></div><div><br></div><div>>its all in one file (about 3200 lines of code), no special dependencies, simple to use, i think gevent support,
 python 3 support, good documentation, ...</div></div><div><br></div><div>>for now i am going with bottle (although with the built in single thread web server).</div><div><br></div></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span>Sounds interesting. I don't know about bottle.py but I'll look at it.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york',
 times, serif; background-color: transparent; font-style: normal; "><span>You have good timing. Tomorrow is the start of an all-weekend hackathon in Montreal. If I don't sign on to another project,</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span>I may do the following:</span></div></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span>work on is a framework for an orchestration engine (http://en.wikipedia.org/wiki/Orchestration_(computing)). I have
 always thought Stackless</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span>Python would be ideal for writing orchestration engines. </span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><span>One of the things that I need is the </span>ability to drop in various 3rd party web service libraries. So I want to use stacklesslib and I guess</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; ">monkey patching of the
 socket library. Heck learning stacklesslib has been on my TODO list for a while.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; ">The other thing I want is to use a modified version of stackless.py that supports a Go programming language style select and join patterns loosely</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; ">based on Polyphonic C#. In this fashion I can readily support something like WS-BPEL's pick (select), and parallel/control dependencies</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman',
 'new york', times, serif; background-color: transparent; font-style: normal; ">(logical ordering of activities). </div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; ">So I wouldn't be using Stackless Python as I would be using either PyPy or CPython with stackless.py</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; ">Cheers,</div><div style="color: rgb(0, 0, 0); font-size: 16px;
 font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal; ">Andrew </div><div><br></div>  <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; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> lars van Gemerden <lars@rational-it.com><br> <b><span style="font-weight: bold;">To:</span></b> Andrew Francis <andrewfr_ice@yahoo.com>; The Stackless Python Mailing List <stackless@stackless.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, March 21, 2013 6:24 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Stackless] stackless & web.py (Richard Tew)<br> </font> </div> <br>
<div id="yiv343545619"><div dir="ltr">Andrew,<div><br></div><div>Have you considered <a target="_blank" href="http://bottle.py/">bottle.py</a>?<div><br></div><div>http://www.slideshare.net/r1chardj0n3s/web-microframework-battle (although the weighing is pretty subjective i guess).<br>
</div><div><br></div><div style="">its all in one file (about 3200 lines of code), no special dependencies, simple to use, i think gevent support, python 3 support, good documentation, ...</div></div><div style=""><br></div><div style="">
for now i am going with bottle (although with the built in single thread web server).</div><div style=""><br></div><div style="">Cheers, Lars</div></div><div class="yiv343545619gmail_extra"><br><br><div class="yiv343545619gmail_quote">On Sat, Mar 2, 2013 at 10:59 PM, Andrew Francis <span dir="ltr"><<a rel="nofollow" ymailto="mailto:andrewfr_ice@yahoo.com" target="_blank" href="mailto:andrewfr_ice@yahoo.com">andrewfr_ice@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv343545619gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div>Hi Richard and folks:</div><div>
<br></div><div style="font-style: normal; font-size: 16px; background-color: transparent; font-family: 'times new roman', 'new york', times, serif; ">Message: 1<br>Date: Thu, 28 Feb 2013 13:45:00 +1300<br>From: Richard Tew <<a rel="nofollow" ymailto="mailto:richard.m.tew@gmail.com" target="_blank" href="mailto:richard.m.tew@gmail.com"><span>richard.m.tew@gmail.com</span></a>><br>
To: The Stackless Python Mailing List <<a rel="nofollow" ymailto="mailto:stackless@stackless.com" target="_blank" href="mailto:stackless@stackless.com">stackless@stackless.com</a>><br>Subject: Re: [Stackless] stackless & <a target="_blank" href="http://web.py/">web.py</a><br>Message-ID:<br>    <CAN=X-THaqXp_8pY=<a rel="nofollow" ymailto="mailto:fkKBxKHnQbzckJsgkynsBkiVY_PNc0X_xg@mail.gmail.com" target="_blank" href="mailto:fkKBxKHnQbzckJsgkynsBkiVY_PNc0X_xg@mail.gmail.com">fkKBxKHnQbzckJsgkynsBkiVY_PNc0X_xg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>On Wed, Feb 27, 2013 at 3:18
 AM, lars van Gemerden <<a rel="nofollow" ymailto="mailto:lars@rational-it.com" target="_blank" href="mailto:lars@rational-it.com"><span>lars@rational-it.com</span></a>> wrote:<br>> I am in the process of finding a way connect my application to a webserver.<br>> I am considering web.py but read somewhere that stackless and web.py might<br>
> not be compatible. Is that true?<br><br>...<br><br>>There are several options:<br>>1) Write a Stackless compatible web server.<br>>2) Adapt an existing web server to be Stackless compatible.<br>>3) Monkey-patch using 'stacklesslib', which makes the blocking calls<br>
>built into the Python interpreter and standard library Stackless<br>>compatible.<br><br>>Feel free to follow up with further questions, or request<br>>clarification if I the above is not clear :-)<br></div><div style="color: rgb(0, 0, 255); font-size: 16px; background-color: transparent; font-style: normal; font-family: 'times new roman', 'new york', times, serif; ">
<br></div>I am in the market for a Stackless http server (currently I use Stackless with Twisted). I looked at web.py. <br>Excluding Python 2.3 compatiability code, it looks like over 90% of the threading for web.py is in <br>
<a target="_blank" href="http://util.py/">util.py</a>.<br><br>I believe there is a version of web.py that uses gevent (http://code.google.com/p/gevent/source/browse/examples/webpy.py?r=aa7080f89a735172d49dc02627153368280cbc82)<br>
<div style="color: rgb(0, 0, 255); font-size: 16px; background-color: transparent; font-style: normal; font-family: 'times new roman', 'new york', times, serif; "><br></div><div>I don't think it would be that difficult to create a Stackless version. It would give me an opportunity to play with</div>
<div>stacklesslib</div><div><br></div><div style="font-style: normal; font-size: 16px; background-color: transparent; font-family: 'times new roman', 'new york', times, serif; ">Cheers,</div><div style="font-style: normal; font-size: 16px; background-color: transparent; font-family: 'times new roman', 'new york', times, serif; ">
Andrew<br></div><br><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> </div>  </div></div><br>_______________________________________________<br>
Stackless mailing list<br>
<a rel="nofollow" ymailto="mailto:Stackless@stackless.com" target="_blank" href="mailto:Stackless@stackless.com">Stackless@stackless.com</a><br>
http://www.stackless.com/mailman/listinfo/stackless<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>====================================<br>
Lars van Gemerden<br><a rel="nofollow" ymailto="mailto:lars@rational-it.com" target="_blank" href="mailto:lars@rational-it.com">lars@rational-it.com</a><br>+31 6 26 88 55 39<br>====================================
</div>
</div><br><br> </div> </div>  </div></body></html>