Re: Faster lein

2013-03-04 Thread Phil Hagelberg
Buck Golemon writes: > I'm quite interested in the "interactive session" option, but none of > the mechanics are described. How would I do the equivalent of `lein > run` or `line cljs autobuild` in the repl? Did I miss this in the docs > somewhere? It's also quite possible that it's an obvious fe

Re: Faster lein

2013-03-04 Thread Buck Golemon
On Mon, Mar 4, 2013 at 10:30 AM, Phil Hagelberg wrote: > > Buck Golemon writes: > > > I take this to mean that there's no widely accepted solution. > > The widely-accepted solution is to leave a single process running. It > certainly has limitations, but it's the way most people deal with the > p

Re: Faster lein

2013-03-04 Thread Phil Hagelberg
Buck Golemon writes: > I take this to mean that there's no widely accepted solution. The widely-accepted solution is to leave a single process running. It certainly has limitations, but it's the way most people deal with the problem. > Really, I just want `lein run` to be faster. Can someone ex

Re: Faster lein

2013-03-03 Thread Marko Topolnik
If you specify AOT compilation for your main namespace (which presumably depends on everything else), the compilation resutls will be saved and reused. On Sunday, March 3, 2013 8:40:27 AM UTC+1, Buck Golemon wrote: > > Thanks Luc. > > In summary, the current compile system has no smart way to ca

Re: Faster lein

2013-03-02 Thread Buck Golemon
Thanks Luc. In summary, the current compile system has no smart way to cache compilation steps, even when it (could) know that the dependencies are unchanged? I can see that this might be hard, as the jvm itself, and the version of closure are implicit global dependencies. A fully reliable sys

Re: Faster lein

2013-03-02 Thread Michael Klishin
2013/3/3 Softaddicts > I want also to investigate if lein itself could be pre-compiled by the same > plugin. > Lein is AOT compiled. You will find compiled versions of Clojure, REPLy, clj-http and other dependencies in the standalone jar. -- MK http://github.com/michaelklishin http://twitter.c

Re: Faster lein

2013-03-02 Thread Softaddicts
If you look at the dependencies you are using, the Clojure libs are delivered as source code. This makes sense, the lib creator/maintainer does not have the slightest idea of your target runtime (which JVM implementation, which version,...). There a single version available to all possible target

Re: Faster lein

2013-03-02 Thread Buck Golemon
On Wednesday, February 20, 2013 10:51:55 AM UTC-8, Phil Hagelberg wrote: > > > Buck Golemon writes: > > > Can I use lein1 and expect the various clojure libraries and templates > to > > work? > > Not really. You could use it on your own projects if you stick to a > subset of project.clj that

Re: Faster lein

2013-03-02 Thread Buck Golemon
On Wednesday, February 20, 2013 11:05:19 AM UTC-8, Phil Hagelberg wrote: > > > Softaddicts writes: > > > SSD + fastest laptop in your price range ;) > > lein2 help takes 12 seconds from start to back at command prompt... > > FWIW the help task is basically the worst case scenario for measuring

Re: Faster lein

2013-03-02 Thread Buck Golemon
So to summarize it seems that one of you uses drip, a couple think it's a non-issue, and the rest want to design a new system. I take this to mean that there's no widely accepted solution. I don't/won't use emacs so nREPL.el is out for me. I use vim, so it's most natural for me to have some kin

Re: Faster lein

2013-02-21 Thread Herwig Hochleitner
2013/2/21 Phil Hagelberg > Unless you want to clear the cache manually every time your dependencies > change, you'd have to make a parallel tree of jars for each version of > Clojure you plan on using. > Ah yes, I forgot that clojure code may compile differently, depending on the clojure version

Re: Faster lein

2013-02-21 Thread Softaddicts
The byte cache avenue is one, allowing for AOT compilation of artifacts in the local repo on disk is another one. Here we use archiva so reloading dependencies does not even require internet. Still need to see how can this come to play with lein's dependency checking an avoid resyncing the local

Re: Faster lein

2013-02-20 Thread Phil Hagelberg
Herwig Hochleitner writes: >> I understand not delivering AOT libs through maven not knowing the target >> environment but having a tuning tool to speed up loading by avoiding > compilation >> would help with all the tooling starting to appear. > > How about a lein-bytecache plugin, that can AOT

Re: Faster lein

2013-02-20 Thread Softaddicts
I am around the same figures, mostly cpu time. If I take our software which is AOT compiled, I can eval nil (or simple values) through clojure.man in 0.9 seconds. I see this as a significant improvement, we use about two dozen Clojure libs, most of which get at least partially compiled prior to l

Re: Faster lein

2013-02-20 Thread AtKaaZ
on win7 64bit Microsoft Windows [Version 6.1.7601] C:\Users\user>cd \1 C:\1>powershell Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. PS C:\1> Measure-Command {*lein version*} Days : 0 Hours : 0 Minutes : 0 Seconds

Re: Faster lein

2013-02-20 Thread Phil Hagelberg
Softaddicts writes: > SSD + fastest laptop in your price range ;) > lein2 help takes 12 seconds from start to back at command prompt... FWIW the help task is basically the worst case scenario for measuring startup time since it has to load every single task in order to get docstrings for them. I

Re: Faster lein

2013-02-20 Thread Phil Hagelberg
Buck Golemon writes: > Can I use lein1 and expect the various clojure libraries and templates to > work? Not really. You could use it on your own projects if you stick to a subset of project.clj that's supported on both, but you would be hampered contributing to other projects. Most templates

Re: Faster lein

2013-02-20 Thread Softaddicts
You should have worked on a vax-725 with a removable 10mb disk the size if a large pizza 4 inches thick . It would have torned your patience to snowflakes which are presently falling on my head, almost as white as my hairs which have been whitening over years of waiting after the then really too s

Re: Faster lein

2013-02-20 Thread Phillip Lord
I've got very variable performance from drip. In some cases, it's slower. My guess is that it runs the application in the last JVM, and spins up the new one to replace it at the same time. On slow machines, this is problematic. Personally, I use patience; I find this solves all my problems.

Re: Faster lein

2013-02-20 Thread Softaddicts
Drip does not give me any significant advantage on my hardware... I think that most of this 12 seconds is spent compiling and initializing all the plugins on top of lein and clojure itself. One day I will have some time to spit out a tool to create a local AOT version of all these nice tools to

Re: Faster lein

2013-02-20 Thread Softaddicts
SSD + fastest laptop in your price range ;) lein2 help takes 12 seconds from start to back at command prompt... We have a huge build here with 9 distinct projects, AOT, ... lein is fired up maybe a dozen times and it takes a bit above 3 mns elapsed time and 2mns of cpu time. Quite happy to live i

Re: Faster lein

2013-02-20 Thread Ulises
I've been using drip with quite some success (with the exception of midje tests which seem to launch their own jvm every time.) On 20 February 2013 15:53, Buck Golemon wrote: > I see that lein2 has factored out the 'interactive' command. > > Can I use lein1 and expect the various clojure librar