Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Any FSM fans?

From: greggirwin:mindspring at: 4-Nov-2001 13:32

Hi Volker, << would it be possible to compile your dialect in Gabrieles objects, like vid compiles to faces? >> Yes. I just whipped up a little code generator for it, so it will generate the code in Gabriele's format. Generating objects directly shouldn't be a problem. It just means figuring out how we want to use these things so we know what to generate while minimizing redundancy. I.e. can I generate a single format that can be used for multiple purposes? If I write out formatted REBOL code, how do I make it easy to use the result with load, read, etc., whether in the same interpreter session, or loaded from disk? Something to keep in mind, and one of the reasons behind my design, is how REBOL creates objects. Since it clones them, you probably want to use that approach only when you have a small number of state machines (which will be the normal case). State Machine are now often being used to drive the AI in games. In those cases, you may have hundreds, or thousands of objects. In that scenario, you probably want to separate the state variable(s) from the state table they use. --Gregg