Chapter 9. Embedding and Extending Jython in Java

Embedding and Extending Jython in Java

Java applications that would benefit from Jython’s high-level, dynamic nature can easily employ Jython through an embedding interpreter. Additionally, Jython applications in need of additional speed can contain modules written in Java, allowing them to take advantage of Java’s efficient bytecode without affecting module-like functionality. These implementations are dubbed embedding and extending. Both are approaches to merging multiple languages in a single application.

Despite the fact that embedding and extending has long been commonplace in many languages, the Jython-Java combination may very ...

Get Jython for Java Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.