[Stackless] Realistic ticking and acting
stackless at kaishaku.org
stackless at kaishaku.org
Thu Jul 13 05:00:07 CEST 2006
> > I have written 7 different proof of concepts for a relatively simple idea.
> > Each implementation has drawbacks. Today I wrote an 8th which does not use
> > channels, and I felt much better about it, but it doesn't do what I want.
>
> This is the code for the 5th and most promising proof of concept
> before I attempted to allow actors simultaneous actions.
>
> http://kaishaku.org/Ticker5.py
>
I just wrote this in plain Python 2.4.3, with plain old generators.
It was much easier to write and handles simultaneous Actor actions.
http://kaishaku.org/Ticker7.py
In Stackless this seems much more difficult (and I haven't even
completed the work yet). The big difference in flow here is that
plain generators yield control back to the caller, simply.
The Stackless scheduler with schedule, send and receive seems to
make this problem harder.
Is there an obvious flaw in my use of Stackless? (in Ticker5.py)
Can you implement Ticker7.py more elegantly Stackless?
--
kai
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
More information about the Stackless
mailing list