Saturday, July 23, 2011

From Lambdas To Bytecode

Just a quick note. Early this afternoon I just finished reading the "Code Generation Strategy for Lambda" available @ JVM Language Summit Site presented by Architect Brian Goetz. It discuss what is Lambda expressions, how to convert it to SAM (Single Abstract Method) types and the possible translation strategy.

Translation Options

Possible Translation Strategy
  • Spin inner classes dynamically.
  • Spin per-SAM wrapper classes.
  • Use dynamic proxies.
  • Use MethodHandle
  • Use Private-VM API to create object from scratch.

This is nice seeing Java moving forward. The official reference implementation of Java 7 is available @ Good luck and more power to Java! :-)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.