From: Eivind Eklund Date: 2004-11-04T01:34:18+09:00 Subject: Re: fsmgen 0.1 On Wed, 3 Nov 2004 05:53:48 +0900, Mark Probert wrote: > Hi, all. > > I am pleased to announce the release of fsmgen. This is a class library > and generator for creating simple finite state machine. The application > is to make simple TCP / UDP servers easy to write. This is done using a > YAML file to define the server and then using a generator to create a > default server and client template. These templates are then modified to > add "real" responses, rather than the default of sending strings back. > > An example of a simple config file is: Wouldn't this be better implemented as meta-programming in Ruby, so you don't generate Ruby code from it once - that's just meta-programmed every time you execute the program? It would seem to be easier to modify things that way (for the case where the initial state machine wasn't quite right, something I find to happen about 9 times out of 10). Apart from that, I like that you're helping abstract state machines - too often, they end up non-normalized and buried. Eivind. -- Hazzle free packages for Ruby? RPA is available from http://www.rubyarchive.org/