Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread John Gabriele
On Apr 24, 9:15 am, Shantanu Kumar wrote: > > lein-exec 0.1 can be used only in the context of a project. This is > related to a limitation in Leiningen 1.x wherein a plugin can run > either in project-context or out of it, not both. "lein exec" in 0.1 > is same as "lein exec -p" in 0.2.0. Ah, th

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread Shantanu Kumar
On Apr 24, 6:08 pm, John Gabriele wrote: > Hi Shantanu, > > Thanks for the detailed reply. > > BTW, an issue I ran into: when using lein-exec 0.1 (installed via > "lein plugin install lein-exec 0.1") with lein 1.7.1, trying `lein > exec foo.clj`, it tells me: > >     Couldn't find project.clj, w

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread John Gabriele
Hi Shantanu, Thanks for the detailed reply. BTW, an issue I ran into: when using lein-exec 0.1 (installed via "lein plugin install lein-exec 0.1") with lein 1.7.1, trying `lein exec foo.clj`, it tells me: Couldn't find project.clj, which is needed for exec Also, re. > 7. In lein-oneoff you

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread Shantanu Kumar
Hi John, > Useful blog post, thanks! Thanks! > I've been using lein-oneoff for this. What are the differences between > lein-exec and lein-oneoff? Current latest versions of lein-exec (0.2.0) and lein-oneoff (0.2.0) have some overlap, but let me list few differences AFAIC: 1. lein-oneoff works

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread John Gabriele
On Apr 23, 3:03 am, Shantanu Kumar wrote: > Hi, > > I'm happy to announce the Leiningen plugin lein-exec 0.2.0, that lets > one write scripts with shebang in Clojure as we do in other languages > like Python, Ruby Groovy etc. > Hi Shantanu, Useful blog post, thanks! I've been using lein-oneoff

Re: [ANN] lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread Sean Neilan
That worked! Thank you very much! On Mon, Apr 23, 2012 at 11:38 PM, isaac praveen wrote: > Sean, > > Ah, you need to call the (-main) function in the script when running > it via Jark. We can discuss this issue further on IRC (#jark) or > mailing list (https://groups.google.com/group/clojure-jar

Re: [ANN] lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread isaac praveen
Sean, Ah, you need to call the (-main) function in the script when running it via Jark. We can discuss this issue further on IRC (#jark) or mailing list (https://groups.google.com/group/clojure-jark) - isaac On Tue, Apr 24, 2012 at 9:27 AM, Sean Neilan wrote: > The persistent JVM is what makes

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread Daniel
I was originally looking at this as a lein-integrated subset of jark, but I see there are different use cases now. Thanks. :) On Monday, April 23, 2012 11:13:45 PM UTC-5, Shantanu Kumar wrote: > > > > On Apr 24, 6:05 am, Daniel wrote: > > I'm curious. How does this differ from Jark? > ht

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread Shantanu Kumar
On Apr 24, 6:05 am, Daniel wrote: > I'm curious.  How does this differ from Jark?     > http://icylisper.in/jark/scripting.html Jark is a client (written in Ocaml) that starts up/shuts down/talks to resident JVMs (with additional Jark-specific code) via the nREPL protocol. It is possible to hav

Re: [ANN] lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread Sean Neilan
The persistent JVM is what makes jark worthwhile. I wish it for me, but, I have this issue: https://github.com/icylisper/jark-client/issues/76 lein-exec is too slow because doesn't use a persistent JVM. On Mon, Apr 23, 2012 at 10:46 PM, isaac praveen wrote: > Jark works with a persistent JVM. I

Re: [ANN] lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread isaac praveen
Jark works with a persistent JVM. It runs the script by transferring the contents of the script to a remotely running JVM using the nREPL protocol. Thus the JVM startup overhead is negligible, which is needed for scripting/IDEs. The client is a light-weight binary (~80-100k, is written in OCaml and

Re: [ANN] lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread Daniel
I'm curious. How does this differ from Jark? http://icylisper.in/jark/scripting.html On Monday, April 23, 2012 2:03:20 AM UTC-5, Shantanu Kumar wrote: > > Hi, > > I'm happy to announce the Leiningen plugin lein-exec 0.2.0, that lets > one write scripts with shebang in Clojure as we do in o

Re: [ANN] lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread Rostislav Svoboda
yet another pearl on necklace -- 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 t

[ANN] lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread Shantanu Kumar
Hi, I'm happy to announce the Leiningen plugin lein-exec 0.2.0, that lets one write scripts with shebang in Clojure as we do in other languages like Python, Ruby Groovy etc. Github URL: https://github.com/kumarshantanu/lein-exec Blog post with examples: http://charsequence.blogspot.in/2012/04/sc