News for hackers. Stuff that matters.
Re:Getting Started With Clojure by scarmig on Tuesday January 08, 2013 @02:35PM (#5027983)
Very nice, JR, best guide I've seen.

I've always wished, though, that all "getting started" guides would just provide a chef recipe or machine image with everything ready to go. Getting to know a language shouldn't require jumping through an hour of hoops and documentation to get it set up.

(Of course, the guide here is broader than simply getting your system set up.)

Re:Getting Started With Clojure by michaelsbradley on Tuesday January 08, 2013 @03:07PM (#5028165)
Thanks to Leiningen[1], getting started with Clojure is super simple.

It doesn't get much easier than pulling down the master `lein` script (or `lein.bat` for Windows) with wget/curl and setting it up on your PATH as an executable. This is similar to rvm[2], nvm[3], perlbrew[4], et al.

You'll need to have Java installed before proceeding to the next step.

Once you've done that, you can run `lein repl` in your shell -- Leiningen will bootstrap itself when it's run for the first time, and when it's done you'll be presented with a Clojure REPL. Now you're ready to start exploring and learning:

http://clojure.github.com/clojure/

http://clojuredocs.org/

http://clojure-doc.org/

Also, please join the friendly community in #clojure on irc.freenode.net[5]. You'll find folks in there nearly 24/7 who are willing to answer questions you may have as you learn your way around. The discussion group[6] is also a great resource.

[1] http://leiningen.org/#install

[2] https://rvm.io/

[3] https://github.com/creationix/nvm

[4] http://perlbrew.pl/

[5] http://webchat.freenode.net/?channels=clojure

[6] http://groups.google.com/group/clojure

Re:Getting Started With Clojure by chc on Tuesday January 08, 2013 @04:15PM (#5028566)
I wanted to get Clojure on my secondary machine to do a little light fiddling, but as it turns out, Windows doesn't include wget or curl, and lein.bat requires those. So I have to download something that requires me to download something so I can download something that will let me install the thing I wanted in the first place. I think it could be a bit easier.
Re:Getting Started With Clojure by technomancy on Tuesday January 08, 2013 @04:26PM (#5028619)
It certainly could be better, but none of the maintainers know Windows, and no Windows users have contributed improvements.
Re:Getting Started With Clojure by jurjenh on Tuesday January 08, 2013 @08:19PM (#5029582)
which makes me wonder if there is a simple java package to do that - probably not much to write a simple curl / wget for java so that on any machine with a JVM you can just lein your way to clojure...
Re:Getting Started With Clojure by michaelsbradley on Tuesday January 08, 2013 @10:11PM (#5029918)
I wonder if java.net.HttpURLConnection would be enough?
Re:Getting Started With Clojure by ogrim on Wednesday January 09, 2013 @04:06AM (#5030790)
I am using Windows more these days, because of work. I will start documenting what I have done to make Clojure and leiningen work properly, and see what can be contributed.
Re:Getting Started With Clojure by chc on Tuesday January 08, 2013 @04:35PM (#5028654)
Which is fair. I don't use Windows a lot myself — this is basically the "League of Legends and Sims 3 machine." I was just pointing it out because lein.bat was mentioned, and I found it kind of surprising given how easy Leiningen is on other platforms.