Cool! I had somehow missed that in the announcement. Quick test on linux:
> echo '(println "Yes!!!")' | time clojure
Clojure 1.9.0
user=> Yes!!!
nil
user=>
clojure 1.38s user 0.07s system 198% cpu *0.730 total*
Well under a second, even with a full-power JVM to load. Very convenient!
Thanks, but I do need the JVM.
> On Jan 5, 2018, at 1:33 AM, Gary Verhaegen wrote:
>
> On 4 January 2018 at 23:26, Delon Newman wrote:
>> Also, any additional advice with respect to using Clojure for shell
>> scripting would be appreciated.
>
> Unless you have a specific reason to prefer the J
On 4 January 2018 at 23:26, Delon Newman wrote:
> Also, any additional advice with respect to using Clojure for shell
> scripting would be appreciated.
Unless you have a specific reason to prefer the JVM to Node as a
platform for your script, I'd encourage you to take a look at Planck
and Lumo fo
Thank you that's what I was looking for!
On Thursday, January 4, 2018 at 7:15:07 PM UTC-7, Sean Corfield wrote:
>
> The `clojure` command just loads your script – it doesn’t call -main – if
> you had
>
>
>
> ;; test.clj
>
> (println “Loaded!”)
>
>
>
> And you ran `clojure test.clj
The `clojure` command just loads your script – it doesn’t call -main – if you
had
;; test.clj
(println “Loaded!”)
And you ran `clojure test.clj` then it would print Loaded!
So you could do:
#!/usr/bin/env clojure
(println (str “Hello, “ (first *command-line-args*)))
(t