On Mon, Dec 22, 2008 at 6:01 AM, Robert Feldt <robert.fe...@gmail.com> wrote:
>
> I'm playing around with different designs to implement VM's (in a
> functional style). Think for parsing, FSM etc.
>
> One of the simpler I've come up with uses normal clojure funcs for
> each instruction to the vm. They all take the state as a map as input
> and then additional arguments. They all return the delta for the
> state. The delta is then merged into the main state in a reduce.

Another option would be to have each function do the 'merge' (or
whatever else it might choose to do) itself, and then return the whole
new state.

--Chouser

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to