3 ms·
As others mentioned, Clojure makes it fairly simple to generate a normal Java class containing your Clojure code. In addition, you can access clojure.lang.RT to
by h_r 14y ago
As others mentioned, Clojure makes it fairly simple to generate a normal Java class containing your Clojure code. In addition, you can access clojure.lang.RT to run your Clojure function directly, like this:
RT.loadResourceScript("pkg1/pkg2/runner.clj");
RT.var("pkg1.pkg2.runner", "run").invoke(args);
However, in my experience, Groovy is about as simple as it can be. Just put your Groovy code inside a class and it looks exactly like any other Java class.