Best practice for calling Clojure from Java

2016-05-01 Thread Patrick Martin
I am working on a Clojure/Java stack, where the Java layer uses Vert.x to manage a collection of embedded computers and the Clojure layer would allow interaction with this system dynamically. I am designing a Clojure DSL that would allow a user to load new functions and deploy them live into the

Re: Best practice for calling Clojure from Java

2016-05-02 Thread Patrick Martin
t; https://github.com/clojure/clojure/blob/master/src/jvm/clojure/java/api/Clojure.java >>> >>> It was added in Clojure 1.6 exactly for this use-case, and will be quite >>> fast, especially if you store the vars somewhere and only look them up >>> once. >

Trouble with classpath

2012-05-06 Thread Patrick Martin
Hi everyone, I'm new to clojure and I have been working through Clojure in Action as well as Chas Emerick's webcast. I created my environment in Eclipse and CCW, but I am having trouble using "use" to get the json library in my program namespace. I have the leiningen project.clj use the [org.d

Re: Trouble with classpath

2012-05-06 Thread Patrick Martin
Thanks for the tips and the welcome. I have been wanting to learn clojure for over a year, but teaching has been keeping me busy! Summer is here and it's time to learn. It appears that restarting the repl fixed that issue. I then tested the same code in a terminal repl and the CCW repl and I ge