Paul Krill
Editor at Large

Java compiler would enable high-quality code, efficient memory use

news
Feb 10, 20122 mins

Advocates of Graal project, including Oracle reps, seek dynamic compiler to be used with multiple JVMs

Java / coffee / beans
Credit: Glen Carrie

Momentum is building for the Graal project, an implementation of a dynamic compiler in Java to produce excellent code quality without compromising compile time and memory usage in the Java Virtual Machine.

Participants in the OpenJDK email-based discussion group, including representatives from Oracle, have been advocating for the Graal project. The effort would explore implementing a dynamic compiler that can be used in a native JVM such as HotSpot or a metacircular JVM such as Maxine. On its project site, Oracle describes the Maxine VM as a next-generation platform written in Java, compatible with modern Java IDEs and the standard Java Development Kit, and featuring a modular architecture. The Graal compiler from the Maxine code base would serve as the starting point of the dynamic compiler project.

“What is clear here is that Graal is about getting improved compiled performance from Java,” said analyst Al Hilwa of IDC. “There is a back-to-native movement, in many ways stimulated by Apple’s iOS development tools, which revolves around a native-compiled model for Objective-C. For a long time the pendulum swung toward virtual machine languages like Java. But the success of iOS devices has begun to shift it back. In this light Java has to up its game in terms of performance that is comparable to what is possible with native compilers and also in terms of integrating with native code.”

A Java architect lauded Oracle’s Graal compiler and JVM efforts, as well as their potential impact on Java coding. “Think about coding in Java, compiling it using a compiler written in Java, and running it in JVM, which is again written in Java — it’s Java all the way and imagine the seamless integration between application and VM,” said Hari Gottipati, principal architect at Apollo Group, parent company of the University of Phoenix. “I am sure the entire Java community is going to be excited about it.” He also is a board member of the Phoenix Java User’s Group.

Graal was the subject of a presentation scheduled for Oracle’s JVM Language Summit last July, entitled “Graal — Bytecode Agnostic Compiler for the JVM,” by Thomas Wuerthinger of Oracle Labs. In addition to pondering Graal, Oracle has been working to converge the JRockit JVM with HotSpot, which was acquired when Oracle bought Sun in early 2010. That effort is expected to be completed with the release of JDK 8 in 2013.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author