Possibly related -- I've noticed that lein repl on Mac / Linux seems
to break type hinting.

$ lein repl
user=> (set! *warn-on-reflection* true)
true
user=> (defn foo [^String s] (.charAt s 1))
Reflection warning, NO_SOURCE_PATH:2 - call to charAt can't be
resolved.

$ java -cp `lein classpath` clojure.main
user=> (set! *warn-on-reflection* true)
true
user=> (defn foo [^String s] (.charAt s 1))
#'user/foo
user =>

... and the execution speed of foo in the first context is much
slower.

On Sep 25, 12:28 pm, Phil Hagelberg <p...@hagelb.org> wrote:
> On Sat, Sep 25, 2010 at 1:20 AM, Andy Fingerhut
>
> <andy.finger...@gmail.com> wrote:
> > % lein repl
>
> > [ Here, if I do load-file, the timing results are about the same as above.
> >  But if I copy and paste the forms one at a time, then I get a time like the
> > one below for the last form:
>
> > user=> (time (vec (swapping a1 100000)))
> > "Elapsed time: 12683.523 msecs"
>
> > This is easily reproducible on my system Mac and Linux systems.  Happens
> > every time.  This is about 200 times longer than all of the previously
> > mentioned timing results. ]
>
> > Anyone else see this?  Or even better, know why it happens?
>
> It appears to be related to a problem with ant. Loading the exact same
> repl code by manually starting a subprocess has no problem at all.
>
> I'm about fed up with ant; it seems that over half the problems with
> Leiningen these days are either bugs in ant or problems in code that
> Leiningen must include to work around bugs in ant. I'm brainstorming
> ways to remove this dependency, but the JVM is pretty crippled when it
> comes to things like unix process management.
>
> -Phil

-- 
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

Reply via email to