On 09/06/2010 12:41 PM, *Paul Tarvydas* wrote:
- Doug Hoyte's book Let Over Lambda, chapter 6.3 Alet and Finite State
Machines, raised my macrology to a new level. I used his ideas to implement a full-blown hierarchical state machine macro(s) (roughly 200 lines of CL, too large to post here). The hierarchical state machine paradigm is great for programming reactive things, e.g. gui's, hardware controllers, etc.
I've read his treatment of state machines, and they seemed like simplified co-routines. Or are you just referring to his macro techniques in aid of your own ideas about state machines?
Matt
On 09/06/2010 12:41 PM, *Paul Tarvydas* wrote:
- Doug Hoyte's book Let Over Lambda, chapter 6.3 Alet and Finite State
...
I've read his treatment of state machines, and they seemed like simplified co-routines. Or are you just referring to his macro techniques in aid of your own ideas about state machines?
Yes to both. His techniques showed me a better idea on how I wanted to implement my (more complex, hierarchical) state machines. And, I implement reactive systems as a bunch of communicating state machines that fire one-way events at each other. As you point out, this devolves into a "stackless" (in fact 1 stack (per core)) set of coroutines.
pt