[Stackless] A Timer Method
andrewfr_ice at yahoo.com
Wed Feb 8 22:42:02 CET 2012
I have started designing a version of the Beer Game (http://en.wikipedia.org/wiki/Beer_distribution_game). Of course, I will use Stackless Python. Although I am not a game player, last year I was shocked at a conference on "Productivity and Innovation in Canada" by how dismissive the chair of my university's operations management department and others were of game technology.
In the Beer Game there is a clock and actions take time. I have looked at Richard Tew's Sleeping tasklets example. And I tend to use Twisted for stuff like scheduling tasks. These are fine but it seems we are all re-inventing the wheel.
Given the ubiquity of timing, why isn't timing is a built in feature? For instance the Go language has a tick channel. Also if I recall, CCP games built some sort of asynchronous callback queue in Python that is connected to the clock (I am trying to find the reference). Couldn't that be used as the basis of a timer function?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Stackless