Continuing
Wednesday, 17 June 2009.
In my experimentation with games design, I've come across a number of use cases that are very difficult to solve using even the very powerful traditional tools Javascript provides, so I've found myself having to delve into the necromancy of continuation-passing style in order to achieve thread concurrency. Continuations are also very useful for other things, since instead of the implicit poetry of functional style, they have a very explicit, prosaic style, which, while less elegant, lets you be much more specific about what you actually want to happen.
There is much more documentation is the very short library I am open-sourcing below (under the Zlib license), which offers a few useful constructs for dealing with continuation-passing without wanting to jump out of a window.
- Current Release: 0.2 (download Javascript source)
If you have any questions or corrections, feel free to send them my way!
