In my main namespace, I have a top level var named \"settings\" which is initialized as an empty {}. My -main fn sets the contents of settings using def and conj based on some command line args (diff
I wish to use clojure STM to store data for my application, but to have the the data structure i开发者_运维问答nvisibly persist the structure to a datastore. how can I extend the built in types with m
I am trying to compile some Clojure code to Java using the Clojure 1.2 compiler. I am including the Clojure and Clojure-contrib 1.2 jars in the classpath. When I do the compile it fails and I get the
I wish to add type data to a clojure vector by adding meta d开发者_开发技巧ata. What do I need to add to this to achieve this:
I have a clojure macro: (defmacro show [x] `(show-fn ~x) ) : whi开发者_运维技巧ch given : (show hello)
I know that multimethods are often dispatches based on class, but is there开发者_开发百科 a way to dispatch based on an interface which is implemented instead? Multimethods allow you to specify your o
I am asking this question as I am starting to really use multimethods and protocols alot, but in doing so I\'m also wondering if I\'m making my code too un-maintainable. For example in the good old (o
I would l开发者_StackOverflowike to do something like: (defrecord Base []) (defrecord Person []) (defrecord Animal [])
I need to make a decision about whether to use STM in a Clojure system I am involved with for a system which needs several GB to be stored in a single STM r开发者_StackOverflowef.
I would like to watch for changes to different parts of a Clojure Hash map (accessed via a STM ref), which forms quite a large tree, and on changes to those parts I would like to invoke some registere