Re: Shebang support for cljr

2011-04-20 Thread icylisper
> Yup - it uses nailgun (though apparently nrepl is also available). > Seems like it improves nailgun for clojure users, but hides features > that would be useful if you're using other JVM-based languages with it > - which is why it requires the double-script dance even though nailgun > doesn't.

Re: Shebang support for cljr

2011-04-20 Thread Jeffrey Schwab
How would you correct it in thread-safe manner? AFAIK, the JVM's notion of "current working directory" is a single, global value. There are other subtle issues, as well, e.g., anybody who can connect to your nailgun server can cause arbitrary code to be executed in your name. One of the more

Re: Shebang support for cljr

2011-04-20 Thread David Jacobs
> You also have to remember that relative paths (including file names passed > to your script) will be interpreted relative to the Nailgun server, not the > user's working directory. That sounds like a major bug that can (and should) easily be corrected. -- You received this message because you

Re: Shebang support for cljr

2011-04-20 Thread Jeffrey Schwab
On Wednesday, April 20, 2011 1:28:38 PM UTC-4, Mike Meyer wrote: > > On Wed, 20 Apr 2011 10:16:05 -0700 (PDT) > David Jacobs 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 >

Re: Shebang support for cljr

2011-04-20 Thread Ben Mabey
Thanks for sharing Jark, I hadn't seen it. Cake[1] also has this functionality so you can use the following shebang line: |#!/usr/bin/env cake | Like Jark, Cake manages the persistent JVMs for you. I don't know enough about either project to know what the key differences between the two may

Re: Shebang support for cljr

2011-04-20 Thread Mike Meyer
On Thu, 21 Apr 2011 01:30:25 +0800 Ambrose Bonnaire-Sergeant wrote: > On Thu, Apr 21, 2011 at 1:28 AM, Mike Meyer wrote: > > 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

Re: Shebang support for cljr

2011-04-20 Thread David Jacobs
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 wrote: > On Thu, Apr 21, 2011 at 1:28 AM, Mike Meyer wrot

Re: Shebang support for cljr

2011-04-20 Thread Ambrose Bonnaire-Sergeant
On Thu, Apr 21, 2011 at 1:28 AM, Mike Meyer wrote: > On Wed, 20 Apr 2011 10:16:05 -0700 (PDT) > David Jacobs 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.

Re: Shebang support for cljr

2011-04-20 Thread Ambrose Bonnaire-Sergeant
Hi David, Jark can do this http://icylisper.in/jark/scripting.html (Jark also uses cljr under the hood coincidentally) Ambrose On Thu, Apr 21, 2011 at 1:16 AM, David Jacobs < develo...@allthingsprogress.com> wrote: > What's the status on this? One of th

Re: Shebang support for cljr

2011-04-20 Thread Mike Meyer
On Wed, 20 Apr 2011 10:16:05 -0700 (PDT) David Jacobs 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'

Re: Shebang support for cljr

2011-04-20 Thread David Jacobs
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. David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Shebang support for cljr

2010-07-29 Thread dulanov
First of all thank you very much for this great tool - cljr! It's much easy to start to work with clojure and remind me ruby-gems, cool. I have been created soft link in "/usr/bin/cljr" and in my clojure scripts use "#!/usr/bin/cljr run". But is it possible in future to add support "#!/usr/bin/env