Hi - Looks nice. On my computer (1-year-old Ubuntu 15.10, medium desktop from ZaReason), inlein is a little faster than lein-exec, about 1.7x ratio:
~/clj > for xx in 1 2 3 ; do time hello-inlein.clj ; done hello world! hello-inlein.clj 0.64s user 0.03s system 129% cpu 0.523 total hello world! hello-inlein.clj 0.58s user 0.07s system 127% cpu 0.513 total hello world! hello-inlein.clj 0.62s user 0.04s system 128% cpu 0.515 total ~/clj > ~/clj > ~/clj > for xx in 1 2 3 ; do time hello-lein-exec.clj ; done hello world! hello-lein-exec.clj 1.29s user 0.05s system 147% cpu 0.904 total hello world! hello-lein-exec.clj 1.24s user 0.08s system 149% cpu 0.883 total hello world! hello-lein-exec.clj 1.26s user 0.06s system 149% cpu 0.886 total ~/clj > Also, I tried inlein both ways, and enabling/disabling the JVM opts made no difference either way (all 0.51-0.53 sec). Alan On Wed, Mar 16, 2016 at 7:04 AM, Yehonathan Sharvit <vie...@gmail.com> wrote: > It would be nice to allow reload of the script from the REPL (with a > special command). > > Another thing, is there a way to package the script and its dependencies > into an executable (like lein bin does)? > > > On Sunday, 13 March 2016 16:09:22 UTC+2, Jean Niklas L'orange wrote: >> >> Hi all Clojurians, >> >> Alex Miller did some research >> <https://groups.google.com/d/msg/clojure/MG8UTcgFhYc/lBiQBoCjAwAJ> on >> slow boot times with Clojure/scripting in >> Clojure not too long ago. >> >> What I found weird was that there were no tool for doing Clojure >> scripting. It's >> possible to do this with both Leiningen and Boot, but neither were >> originally >> designed for scripts nor fast startup times. I have personally found this >> a bit >> annoying in the past, as I have had good reasons to use Clojure for >> scripting. >> >> Therefore, I have created a new tool called Inlein <http://inlein.org>. >> You can think of it as a >> Leiningen for scripts, where the project.clj is inlined into the script >> itself. >> Inlein itself starts up very fast, so the startup time of a script is >> more or >> less only the time it takes to start Clojure and the dependencies you >> drag in. >> >> You could probably use this for a lot of things. The first thing that >> comes to >> mind is obviously long-running scripts and CLI programs, but it could >> also be >> used for customised REPLs, independent of Boot and Leiningen. >> >> There are probably many uses for Inlein that I haven't thought of yet, >> but if >> you want inspiration, you can have a look in the examples directory >> <https://github.com/hyPiRion/inlein/tree/master/examples>. >> >> Inlein is located over at https://github.com/hyPiRion/inlein and the >> 0.1.0 >> version can be downloaded from >> https://github.com/hyPiRion/inlein/releases/0.1.0/ >> >> To get started, you can take a look over at the Getting Started page >> <https://github.com/hyPiRion/inlein/wiki/Getting-Started> on the >> wiki. >> >> -- Jean Niklas >> >> -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.