I recently had a Rails project I was working on in JRuby. I also had a separate yet related project in Clojure. I thought it would be great to hook them together to provide a web interface for the Clojure project.
I did some searching and found this code to evaluate Clojure code from JRuby: http://groups.google.com/group/clojure/browse_thread/thread/41e811c158d7881f/b31dc456fb5280ed It was a little out-dated though, so I checked it into GitHub and updated it to work with the current version of Clojure. http://github.com/jtran/jruby-clojure/tree/master This allows you to call the Clojure compiler on string s-expressions from JRuby, which is much more seamless and lightweight than having to generate classes in your Clojure code. For example... Clojure.execute( "(first [1 2 3])" ) # => 1 I hope this is helpful to someone. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---