Other languages key to Java's future
Platform play nice with others
QCon 2008 It is not the Java language that's important - it is the platform that has grown around it.
That's according to one veteran of architecture, design and distributed systems development now in the thick of training developers, who reckons the continued success of Java depends on its ability to adapt to modern development demands.
Venkat Subramaniam, the chairman of software training company Agile Developer, told QCon Java has grown beyond a language and the excitement is now centered on the combination of the Java platform with dynamic languages such as Groovy, JRuby and Jython.
"Multi-language environments mean you can get full interoperability between constructs created in different languages. Dynamic languages also give you the power of metaprogramming and domain-specific languages. This improves productivity and allows users to be more expressive," Subramaniam said
He added the combination of Java with other languages provides flexibility in development. "You can use techniques such as rule specification and let programs evolve to take dynamic decisions based on certain inputs or an application's state. You can also exploit the idiomatic differences of individual languages."
"You can use Java JSR-223 as a standard interface for interoperability and use ScriptEngineManager to call in the script from the dynamic language. You can pick and choose between an invocable and a compilable interface - it depends on the circumstances and on which language you are using," Subramaniam said.
Subramaniam noted the compilable interface offered by Groovy made it simple to combine Java and Groovy code and use only a single pass to produce executable code. "Groovy 1.5 or later makes it easy - you just put in the J option and you can compile Groovy code into Java Bytecode. The Groovy compiler can compile both together in one go."
Sun Microsystems was quick to support Groovy when it was approved under the Java Community Process. Recently it has looked to expand the Java platform to support other dynamic languages such as Python and Ruby.®
The Register is a media sponsor of QCon London 2008.
Sponsored: Optimizing the hybrid cloud