Ah yes, good point! I'll change that code to dereference inside the
transaction (you're totally right, that's the whole point of
transactions!) and not use ref as a local binding. Thanks for the
tips!
Sorry, I should have included a run script or something, or at least
instructions on using
Nice!
I had to learn a bit about jogl to get it to work - had to add -
Djava.library.path={path to my jogl lib directory} to my shell script.
The following is in model.clj:
(defn update [ref val]
(when (not (= @ref val)) (dosync (ref-set ref val
I believe this is not right: the deref
Greetings,
I have had success writing a 3D graphing program in Clojure, which
parses a user defined parametric function (of the form (x,y,z) = f
(u,v)) and renders it as a freely rotatable 3D surface (using OpenGL).
The full source code is posted here (public domain, feel free to use,
copy,