News for hackers. Stuff that matters.
Re:Why developers should be force-fed state machines by signa11 on Monday June 13, 2011 @12:29PM (#2649619)
this is why i like ragel (http://www.complang.org/ragel) a lot. seems that zed-shaw also has used it in couple of his projects e.g. mongrel most notably. would be particularly cool if ragel can be combined automagically for some protocol parsing tasks...
Re:Why developers should be force-fed state machines by shabble on Monday June 13, 2011 @08:34PM (#2651336)
I'm also a big fan of ragel, and have used it for various protocol implementations. One of the really nice features is that you can have it output graphviz dot files, to get an actual visualisation of your state machine, so you know where you've missed a transition, or how you've accidentally hit a state explosion with a bad rule.
Re:Why developers should be force-fed state machines by shubber on Monday June 13, 2011 @07:13PM (#2651114)
Zed Shaw also has a nifty blog post about explicitly hacking Ragel to model a state machine - iirc it has to do with an anti-griefing messaging system. Worth googling.