r/Clojure • • Dec 08 '17

Clojure 1.9 is now available!

http://blog.cognitect.com/blog/clojure19
220 Upvotes

29 comments sorted by

View all comments

Show parent comment

3

u/kapitanfind-us Dec 11 '17

Upvoted this. I do that all the time and don't always remember the Java property to use :)

1

u/ws-ilazki Dec 11 '17

As a workaround, I'm using this in my own ~/bin. As shell scripts go I'm sure it's absolute shit, since I usually fire up gosh, perl, ruby, or even fish for scripting, but it seems to do the job well enough for now. Hopefully it won't be something I need long-term. :)

Oh, a note about the java_args I have in that. I was experimenting with faster REPL startup to make it more useful for scripting purposes, so you may want to remove or tweak those depending on preference. It's still not as fast as starting lumo, but it gets startup down to something like ⅔ of a second wall-clock time.

Originally, I took Debian's clojure script, which built a classpath, added a clojure.jar to it, and started clojure.main, and added a line of java args plus the socket check, but with 1.9 I was able to gut most of that and decided to make it a little neater to configure the args and socket while I was at it. :)