Paul Krill
Editor at Large

Project Detroit, bridging Java, Python, JavaScript, moves forward

news
Mar 17, 20262 mins

Oracle to introduce Detroit project at JavaOne, for faster interop between Java, JavaScript, and Python.

Java, Oracle, Google, IBM, Eclipse, Amazon
Credit: Tada Images - shutterstock.com

Java’s revived Detroit project, to enable joint usage of Java with Python or JavaScript, is slated to soon become an official project within the OpenJDK community.

Oracle officials plan to highlight Detroit’s status at JavaOne on March 17. “The main benefit [of Detroit] is it allows you to combine industry-leading Java and JavaScript or Java and Python for places where you want to be able to use both of those technologies together,” said Oracle’s Georges Saab, senior vice president of the Java Platform Group, in a briefing on March 12. The goal of the project is to provide implementations of the javax.script API for JavaScript based on the Chrome V8 JavaScript engine and for Python based on CPython, according to the Detroit project page on openjdk.org.

Initially proposed in the 2018 timeframe as a mechanism for JavaScript to be used as an extension language for Java, the project later fizzled when losing sponsorship. But interest in it recently has been revived. The plan is to address Java ecosystem requirements to call other languages, with scripting for business logic and easy access to AI libraries in other languages. While the plan initially calls for Java and Python support, other languages are slated to be added over time. The Java FFM (Foreign Function & Memory) API is expected to be leveraged in the project. Other goals of the project include:

  • Improving application security by isolating Java and native heap executions.
  • Simplifying access to JS/Python libraries until equivalent Java libraries are made.
  • Delivery of full JS/Python compatibility by leveraging the V8 and CPython runtimes. Also, maintenance cost is to be reduced by harnessing the V8 and CPython ecosystem.
  • Leveraging existing investments in performance optimizations for the JS and Python languages.
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