[Stackless] stackless & web.py

Richard Tew richard.m.tew at gmail.com
Sat Mar 2 20:24:06 CET 2013

On Sun, Mar 3, 2013 at 4:26 AM, lars van Gemerden <lars at rational-it.com> wrote:
> 3) Given 2) is it reasonable to accept that this means that any
> networking framework that you just run, like web.py cannot be as they
> stand be Stackless compatible?
> ehm ... sounds like bad news :-)

Stackless offers cooperative microthreading.  That means you have to
run the scheduler, and that any code that runs has to yield to it, so
that the other microthreads can run.  Any existing application will
have it's own main loop, or delegate running to whatever framework it
uses.  Stackless can't alter reality to make these run the scheduler
and yield in all the right places - but it can fake that reality by
the monkeypatching.


More information about the Stackless mailing list