Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday December 30, 2004
05:35 PM

Nailing down the state machine build process

[ #22511 ]

After finding some odd bugs in either Text::Wrap or GraphViz (and not having time to debug them), I finally got back on track with the build process. One embarrassing problem with the original state machine is how it would get to the end and tell us "yup, you can build your database", but it wouldn't say how. That's been fixed. At every step of the way, if the machine sees that something needs to be done, it caches an action and the information necessary to complete that action. If the machine finishes successfully, those actions are handed off to the build process which then iterates through them to actually build our data store.

Regrettably, this has made the new state machine graph more complicated and it threatens to get more complicated as we add more conditions. This is either showing me the limitations of GraphViz or the limitations of my understanding of it.

As a side note, that graph represents about 270 lines of code. I've also added "Panic" states to the machine. These are immediately fatal states that machine should never reach. I've just tripped one :/

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.