Compilation troubles...

2009-07-11 Thread alfred.morgan.al...@gmail.com
I'm really sorry to have to bring up this kind of newb question, but I just can't seem to get clojure compilation to work. The clojure file involved couldn't be simpler: (ns sov.sim.character (:gen-class)) (defn -main [greetee] (println (str "Hello world !"))) ...and that's it. It's in the s

Re: (Simple) Neural Net Simulation

2009-06-10 Thread alfred.morgan.al...@gmail.com
Thanks for all the tips, particularly on the subject refs and atoms- that makes things substantially simpler now. (Pointer math... Grrr...) > I also wonder why you consider the construction of the network graph > (as above) to be an inherently stateful activity.  And why you choose > to have tho

Re: (Simple) Neural Net Simulation

2009-06-09 Thread alfred.morgan.al...@gmail.com
Thanks for the advice, but at present I'm simply aiming to get the very basics of a neural net up and running without having to worry about a training algorithm at all. Here's what I have so far (again, very basic) ;; Net0 (def nodes {}) (defn insertNode [node] (do (def nodes (assoc nodes (

(Simple) Neural Net Simulation

2009-06-09 Thread alfred.morgan.al...@gmail.com
I'm pretty well a complete beginner at clojure, but I was hoping I could get some advice on how to do this sort of thing efficiently/ concisely, because as far as I can tell this involves handling an awful lot of heavily mutable state, so right now I really feel like I'm fighting the language. Wh