Live data from Hacker News

How to Use Clojure for Scripting

asimjalis.github.io

1–10 of 29 posts

Re: How to Use Clojure for Scripting

#2
If you want to keep the repl running this is fine, but for scripts, you should be using planck[1] or lumo[2]. Planck in my experience has nice command-line args parsing by default, both should be fast enough not to be annoying when running scripts.

[1] http://planck-repl.org [2] https://anmonteiro.com/2016/11/the-fastest-clojure-repl-in-t...

Re: How to Use Clojure for Scripting

#3
post #2

If you want to keep the repl running this is fine, but for scripts, you should be using planck[1] or lumo[2]. Planck in my experience has nice command-line args parsing by default, both should be fast enough not to be annoying when running scripts. [1] http://planck-repl.org [2] https://anmonteiro.com/2016/11/the-fastest-clojure-repl-in-t...

Seconded. Planck is fantastic for scripting, and the accompanying tutorial[0] is great for getting started. The only problem is that its OSX only

[0] - http://planck-repl.org/scripts.html

Re: How to Use Clojure for Scripting

#4
You don't need that `cemerick.pomegranate` import. Boot can already do that - the `deps` functions should look like this:

    (defn deps [the-deps]
      (merge-env! :dependencies the-deps))

Re: How to Use Clojure for Scripting

#5
post #2

If you want to keep the repl running this is fine, but for scripts, you should be using planck[1] or lumo[2]. Planck in my experience has nice command-line args parsing by default, both should be fast enough not to be annoying when running scripts. [1] http://planck-repl.org [2] https://anmonteiro.com/2016/11/the-fastest-clojure-repl-in-t...

Seconded. Planck is fantastic for scripting, and the accompanying tutorial[0] is great for getting started. The only problem is that its OSX only [0] - http://planck-repl.org/scripts.html

The Planck 2.0 beta has Linux support, I believe.

Re: How to Use Clojure for Scripting

#7
post #2

If you want to keep the repl running this is fine, but for scripts, you should be using planck[1] or lumo[2]. Planck in my experience has nice command-line args parsing by default, both should be fast enough not to be annoying when running scripts. [1] http://planck-repl.org [2] https://anmonteiro.com/2016/11/the-fastest-clojure-repl-in-t...

Seconded. Planck is fantastic for scripting, and the accompanying tutorial[0] is great for getting started. The only problem is that its OSX only [0] - http://planck-repl.org/scripts.html

Yep, now with Linux support. There's a wiki page[1] that has details on building for different distros. Works a treat on my Ubuntu 16.04 desktop.

[1] https://github.com/mfikes/planck/wiki/Building

Re: How to Use Clojure for Scripting

#9
post #2

If you want to keep the repl running this is fine, but for scripts, you should be using planck[1] or lumo[2]. Planck in my experience has nice command-line args parsing by default, both should be fast enough not to be annoying when running scripts. [1] http://planck-repl.org [2] https://anmonteiro.com/2016/11/the-fastest-clojure-repl-in-t...

Seconded. Planck is fantastic for scripting, and the accompanying tutorial[0] is great for getting started. The only problem is that its OSX only [0] - http://planck-repl.org/scripts.html

I don't get it, why didn't he used nodejs from the start instead of JSCore so it would have windows,linux,osx support?

Re: How to Use Clojure for Scripting

#10
post #9

Earlier quoted context omitted.

Seconded. Planck is fantastic for scripting, and the accompanying tutorial[0] is great for getting started. The only problem is that its OSX only [0] - http://planck-repl.org/scripts.html

I don't get it, why didn't he used nodejs from the start instead of JSCore so it would have windows,linux,osx support?

So that it would have iOS support via JSCore.
Post reply on HN