Thanks, Jark looks awesome for this. Things like this should be more discoverable. I googled "shebang clojure" for 10 minutes before posting here and didn't come up with anything.
On Wed, Apr 20, 2011 at 1:30 PM, Ambrose Bonnaire-Sergeant <abonnaireserge...@gmail.com> wrote: > On Thu, Apr 21, 2011 at 1:28 AM, Mike Meyer <m...@mired.org> wrote: >> >> On Wed, 20 Apr 2011 10:16:05 -0700 (PDT) >> David Jacobs <develo...@allthingsprogress.com> wrote: >> >> > What's the status on this? One of the reasons I don't use Clojure >> > everyday, >> > much as I like it, is that I want it to integrate seamlessly with Unix >> > for >> > scripting. >> >> Um, I've been using it with shebang scripts for a while now. You've >> got to do the usual interpreted interpreter double-script dance, >> though: >> >> 1) Write a shell script that launches java running the clojure main >> with all your favorite libraries somewhere on CLASSPATH. >> >> 2) Start your scripts with "#!/usr/bin/env scriptname" where >> scriptname is the clojure script you wrote in step 1. >> >> Performance pretty much sucks - starting the jvm is just slow. You can >> solve that with nailgun (or something similar), which will let you use >> the nailgun binary as the interpreter (i.e. "#!/usr/bin/env/clojure" >> where clojure is a copy/symlink to the nailgun binary), but you have >> to remember to start the nailgun server. >> > > Jark uses a persistent JVM so it's very nice to use for this task. > Ambrose > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en