JVMs has a strange limitation for the size of methods. I don't know if there is a plan to solve that on the JVM side.
It is quite hard to solve that on the compiler side. When I bumped inot this (once for an ICFP contest), I rewrote a macro so that it emitted smaller methods called from a big method. On Sun, Nov 14, 2010 at 5:48 AM, Robert McIntyre <r...@mit.edu> wrote: > So my friend and I were screwing around, battling versions of LISP as > nerds are wont to do, when I came across this: > > (eval `(clojure.core/+ ~@(take 1e4 (iterate inc 1)))) > Invalid method Code length 89884 in class file user$eval13607 > > > This is just trying to evaluate + directly on a bunch of arguments. > > Common Lisp on my friend's 30 year old Lisp machine does the > equivalent of this with ease, even for much larger numbers. > > As I'm writing this, my "friend" is rubbing in this in my face by also > doing the above with C-LISP on his laptop. (although his stack > overflows for 1e5) > > I'm losing my battle!!! :( > Pls. help! > > --Robert McIntyre > > -- > 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 -- Sent from an IBM Model M, 15 August 1989. -- 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