There is a size limit on methods on the jVM. partial-evaluator would be a cool project, I think.
On Thu, Aug 19, 2010 at 6:38 AM, Tim Daly <[email protected]> wrote: > Could the compiler insert phantom "method bodies" around classes? > Or does the JVM insist that you can't "lie about the code structure"? > Am I being too lispish for the JVM? Clearly the JVM needs to look up > some factoid out of the method body in order to recur so I'm suggesting > that the whole set of classes get wrapped in a phantom method. > > The code that comes out of the compiler does not need to mirror > the code that went into the compiler. That's the whole point of > doing compiler optimizations. > > Perhaps a literature pointer could make the restriction clear. > > Tim Daly > > Kevin Downey wrote: >> >> only in the cases already handled by recur. >> >> jvm's goto instruction only works within method bodies >> >> On Wed, Aug 18, 2010 at 6:24 PM, Tim Daly <[email protected]> >> wrote: >> >>> >>> Write a compiler routine to detect tail recursion. >>> >>> It is my (limited) understanding that Java can perform >>> tail recursion elimination but only under limited >>> conditions. >>> >>> Is there a way to detect tail recursion in Clojure and >>> dynamically rewrite the code to do real recursion rather >>> than using recur? Is your solution general enough? >>> >>> Mark Derricutt wrote: >>> >>>> >>>> Or a native dalvik compiler! >>>> >>>> -- >>>> Pull me down under... >>>> >>>> >>>> >>>> On Thu, Aug 19, 2010 at 10:37 AM, Jules <[email protected] >>>> <mailto:[email protected]>> wrote: >>>> >>>> Or a Clojure to Javascript compiler. So many interesting projects! >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Clojure" group. >>>> To post to this group, send email to [email protected] >>>> Note that posts from new members are moderated - please be patient with >>>> your first post. >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> 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 post to this group, send email to [email protected] >>> Note that posts from new members are moderated - please be patient with >>> your >>> first post. >>> To unsubscribe from this group, send email to >>> [email protected] >>> 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 post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > 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 post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
