Search This Blog

Thursday, December 2, 2021

Clojure Shell Scripts on Debian

So I managed to install a very recent clojure through Debian's package manager, and it just worked.

And my next thought is: "If it's somehow become a proper part of Debian, does that mean I can do shell scripts?"


cat >test.clj

#!/usr/bin/env clojure
(print "hello")

chmod +x test.clj


(2 second pause...)


Compare with the python equivalent:

cat >

#!/usr/bin/env python

chmod +x


The only difference is the lack of a two second pause. Python responds instantly.

I can live with a two second pause.

I am totally amazed and pleased by this. It feels much more like a proper programming language than it used to. It's too good to be true.

I wonder if we've got a command line argument parser yet.

1 comment:

  1. You should have a look at It's a Clojure interpreter for scripting which starts fast.