3 ms·
I couldn't start writing and compiling my own source files until I went through all these unofficial channels to get stuff set up. I might be misremembering abo
by brundolf 5y ago
I couldn't start writing and compiling my own source files until I went through all these unofficial channels to get stuff set up. I might be misremembering about the actual tutorial itself, but step 2 (do your own project) was literally impossible without the detour.
This is even worse than how it is for Python - which does have a similar problem - because at least in Python's case you can "just run" your scripts up until the point where you need dependency management and packaging. You can't even execute a .clj file (as far as I know) without going outside of the official resources.
- capableweb 5y agoI'm not sure how they can make it easier than what it currently is, no need for any unofficial channels. If you follow the guide at https://clojure.org/guides/getting_started https://clojure.org/guides/getting_started to install Clojure, you'll end up with `clj` in your `$PATH`, and then it is as easy as it is with Python, unless I misunderstand what you mean. $ clj --version Clojure CLI version 1.10.3.849 $ echo "(println \"hello world\")" >> hello-world.clj $ clj hello-world.clj hello world
- brundolf 5y agoThis was three or four years ago so it's very possibly changed since then (in fact the OP was specifically about this story changing)
- capableweb 5y agoYeah, three or four years ago (before Clojure Tools), you'd have to do something like this: $ java -cp clojure.jar clojure.main hello-world.clj Still, I'd argue it's about the same as Python, at least for the most basic use case, like what you were complaining about in your previous comment.