Generating Java Interfaces for Accessing Foreign Objects in GraalVM (Work in Prog...
summary
A tool that analyzes foreign-language code and produces usable Java interfaces for GraalVM interop, using the mypy API type extractor to pull function, field and inheritance metadata and mapping unannotated types to java.lang.Object. It renames reserved identifiers, generates Java factory functions for Python constructors instead of real constructors, implements Python multiple inheritance as Java interfaces, handles unions with a wrapper, and has working prototypes for TypeScript and WebAssembly.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:26What is GraalVM
- 1:08Java and Python interaction
- 2:16Generic foreign object access
- 2:59Extracting Python metadata
- 4:03Generating Java interfaces
- 5:09Python naming issues
- 6:18Python inheritance and Java
- 7:26Type transformations challenges
- 8:33Future work and multi-language
- 8:58Q&A








