Fun with Melding Java and Python
summary
pgrmi (Python Java Remote Method Invocation) lets Python create shim objects for live Java objects and call methods both ways, using pgrmi (Python Java Remote Method Invocation) to instantiate Java classes, boxing/unboxing primitives, and mapping exceptions to Python. Demos use numpy-based type hints to resolve overloaded constructors, show an eight-level computeIfAbsent callback chain crossing Java↔Python threads, successful proxying of a proxy Runnable into Java thread, arraylist mixing types, pickle-based copy-by-value, and live-attach debugging; open source release is planned.
AI-written summary · about
chapters (8)
- 0:00Introduction to PGRMI
- 1:55Working with Java objects
- 4:57Type system and boxing
- 8:28Data conversion and arrays
- 10:48Overloading and collections
- 12:24Exceptions and callbacks
- 14:46Duck typing and scripts
- 17:12Q&A and closing remarks
related talks
47mSupercharge your Java Applications with Python!
56mJourney from Java to Python: Two Worlds, One JEP
33mIntegrating Scala Java with your Python code
27mPython and the JVM - A Love Story
31mAdding Python support to Scala tooling
33mParens for Python
01h 01mPolyglot Programming in the JVM
16mForeign Function and Memory API
