[Stackless] Recreating a stack

Richard Tew richard.m.tew at gmail.com
Sun Mar 3 19:33:34 CET 2013


On Mon, Mar 4, 2013 at 12:14 AM, Fábio Santos <fabiosantosart at gmail.com> wrote:
> Out of an itch to experiment with the innards of Python I've been wanting to
> implement a fork() call which works across a network.
>
> This would also make fork() accessible in windows systems.
>
> To do this, I would need to pickle (or otherwise serialize) the whole call
> stack and send it through a socket.

This is already possible with  Stackless pickling, as long as there is
no extra C state, and I believe the same version of Python is in use
on the other "nodes".

It's covered along with a general introduction to STackless in this blog post:
http://jessenoller.com/blog/2009/02/23/stackless-you-got-your-coroutines-in-my-subroutines

Cheers,
Richard.



More information about the Stackless mailing list