Leining In – for the Brave and True

Clojure is a language that runs on the JVM, the Java Virtual Machine.

I was advised to use Leiningen and I didn’t know why but I value my hair (see link) so I found out. I followed the ‘Install’ instructions at http://leiningen.org/, following the lein script option on my Linux box.

The syntax to run the Clojure REPL (Read, Execute, Print, Loop) environment from a .JAR file in the JVM is a bit tricksy. Once you’ve installed Leiningen, you only need to type

$ lein repl

and a rather worrying time later, the REPL announces itself. Leiningen is a build tool for Clojure so the ‘lein’ command has other options too, but I don’t think they matter to me right now so ‘All I need to do now’ is read ‘Clojure for the Brave and True’: http://www.braveclojure.com/

This has done nothing to shake my belief that functional programming is for nutters.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s