On Jan 17, 2008 4:51 PM, Per Bothner <[EMAIL PROTECTED]> wrote:
>
> John Wilson wrote:
> > One thing I have considered is aggregating all these
> > closures/lambda/etc in a compilation unit as static methods on a
> > single class. This means that you amortise the cost of a classloader
> > over several methods. Instances of the function object delegate to the
> > static method. The cost is, obviously, delayed GC of the "mothership"
> > class.
>
> Kawa does a variant of this:
> http://www.gnu.org/software/kawa/internals/procedures.html

Thanks for the reference. It's nice to know that somebody has
implemented this before. It makes me more likely to pursue the idea
further (possibly synthetic static methods on the class in which the
function object is declared).

John Wilson

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to