Tuesday, August 09, 2011

SIGUSR2 > Code Blogging: Call With Current Continuation for Python

SIGUSR2 > Code Blogging: Call With Current Continuation for Python: "Continuations are a snapshot of the programs control state at a given time. The concept exists in every language, but only some allow a programmer to bundle it up into an actual object to manipulate in some way.

That bundled, first-class, version of a continuation is applyable, like a function, and depending on the language is either invokable once (one-shot) or multiple times (multi-shot). In the case of multi-shot continuations, one can imagine a great number of use cases such as building coroutines, efficient backtracking and stateful web-servers."