Using drip for Clojure scripts (non-Leiningen)

Using drip to run Clojure code like a script.

#^:shebang '[
exec drip -cp "$HOME/bin/clojure.jar" clojure.main -i $0
(println "Hello, world!")

That’s it. Use lein-exec (2.0 compatible) to write scripts that can use dependencies. Also this is pretty fast since there’s no bootstrap stage.

I know this site is a bit of a disaster zone, but if you like my writing or think you could learn something useful from me, please take a look at the Haskell book I've been writing. There's a free sample available too!