Sometime in the Fall of 2012 or Spring 2013 I volunteered to do a presentation on embedding Clojure. Embedding Clojure in what? "Well all kinds of things...let's see what we can do." I covered the first five examples in an interactive presentation on July 8, 2013 at the Austin Clojure Meetup.
- Call Clojure from Java the recommended way
- Using Clojure to make a library jar for use in Java the hard way
- Clojure as a JSR-223 scripting language
- Call Clojure from Scala
- Embedding a Clojure REPL
- Clojure-Powered annotations
- Clojure streamed down the wire
- Clojure in a PostgreSQL database (WIP)
- Clojure on a raspberryPi
- Clojure compiled down to LLVM on a device?
Additionally, the information here is compiled from the sweat and tears of others who posted to the internet for our collective benefit.
-
The hard way, my first try based on Java preconceptions. Works in OSGi environment.
http://java.dzone.com/articles/java-clojure-interop-calling -
This is the way the clojure team (Stu,...) suggest.
-
Java validation annotation, but the validations are in clojure. http://skife.org/2009/07/05/embedding_clojure.html
-
Calling Clojure from Scala http://stackoverflow.com/questions/2181774/calling-clojure-from-java
-
Compiling Clojure to other things
- Nathan Sorenson
- ClojureWest talk slides https://github.com/strangeloop/clojurewest2013/blob/master/slides/sessions/Sorenson-Clojure-to-Native-via-Scheme.pdf
- Nathan on Github https://github.com/takeoutweight
- Clojure to scheme https://github.com/takeoutweight
- ClojureScript
- Nathan Sorenson