[Stackless] 'Stackliss' module

Jeff Senn senn at maya.com
Tue May 2 16:29:11 CEST 2006


I have a similar scheduler based on greenlets... I added some
functions to the greenlet module to support "pre-emptive" scheduling.

They make use of PyEval_SetTrace() to do the "interrupting". Note  
that this
method is incompatible with anything else that uses the trace function
(like the python debugger), but otherwise it does work with stock  
python.

I would say performance is on par with stackless (it uses the same task
switching mechanism).  The benefit of stackless is that it goes to great
lengths to make sure many things work seamlessly (like resetting  
exception states
and the trace function, using multiple threads, handling task-switches
based on channel state, etc...)  Because of this I might switch back
to full Stackless now that there is a modern port. :-)

-Jas

P.S. let me know if anyone wants the little bit of code...

On May 2, 2006, at 10:04 AM, Josh Ritter wrote:

> Is this the latest version of stackliss?  If not, where is it  
> hosted?  Did
> you come up with a way to implement the watchdog functionality?
>
> http://www.stackless.com/pipermail/stackless/2005-May/001444.html
>
> How does stackliss perform?  A ballpark guesstimate of abysmal to  
> wonderful
> is acceptable :)
>
> Thanks,
> -Josh Ritter
> Prairie Games, Inc
> http://www.prairiegames.com
>
> ----- Original Message -----
> From: "Richard" <richard at ccpgames.com>
> To: <stackless at stackless.com>
> Sent: Tuesday, May 02, 2006 7:23 AM
> Subject: Re: [Stackless] Are you using Stackless in a project?
>
>
>> From: Joachim König-Baltes on 02 May 2006 12:17
>> What about greenlet, the stackless spin off available as an  
>> extension?
>> Are applications based on that also candidates?
>
> Absolutely.
>
> Maybe make a third section down the bottom, entitled 'greenlet based
> projects' or something similar, and put them there.  I could put my
> 'stackliss' project in there as well.
>
> Richard.
>
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless
>
>
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless
>


_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list