Monday, May 3, 2010

New JDK 7 (Java Development Kit) Features

"The Oracle JRockit JVM is the industry's highest performing Java Virtual Machine. Following the finalization of the acquisition of Sun Microsystems, Oracle announced in its January 27, 2010, Strategy Update webcast that the best features of JRockit would be implemented in the Java 7 JVM"

I just wanted to note several key features that will be supported in the new JDK 7. The JDK 7 (Java Development Kit) is a prototype of what could be in the next release of the core Java platform (Java SE). It introduces several key features to improve the security, performance and usability of the Java platform. The JDK 7 features will (primarily) focus on these areas: modularization, multi-language support, developer productivity and performance.

Dynamic Language Support on the Java Virtual Machine

The new JDK 7 feature improves the compatibility of Java and other dynamic languages such as Python and Ruby. This feature (Dynamic Language Support on the Java Virtual Machine) implements the Java Specification Request #292 (JSR 292) is a logical follow-on JSR-223 (Scripting for the Java platform), which is already implemented in JDK 6.

"There is growing interest in running a variety of programming languages on the the Java platform, and consequently, on the Java virtual machine (JVM). This interest is increasingly focused on dynamically typed languages, in particular scripting languages.

To make it easier to produce performant, high quality implementations of such languages, we propose to add support at the virtual machine level.

Specifically, we seek to add a new JVM instruction, invokedynamic, designed to support the implementation of dynamically typed object oriented languages. We will also investigate support for hotswapping, the capability to modify the structure of classes at run time."

The key part of this support (Dynamic Language Support on the Java Virtual Machine) is the addition of a new Java bytecode, invokedynamic, for method invocation, and an accompanying linkage mechanism that makes use of a new construct called a method handle, will enable implementers of compilers for dynamically typed languages to generate bytecode that runs extremely fast in the Java virtual machine (JVM).

With the addition of this support for JSR 292 (Dynamic Language Support on the Java Virtual Machine) in JDK 7, dynamically typed languages should run faster in the JVM than they do today! For more information, please refer to JSR 292.

Thank you and happy reading .",)

No comments:

Post a Comment

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