Bridging between Scala & Python with GraalVM
summary
Ongoing work uses GraalVM (GraalPy) to let Scala 3 call Python 3 code without spawning processes by generating a single global polyglot context and hiding the polyglot API boilerplate. It produces generated Scala traits + companion objects from Python modules, maps Python type hints to Scala types where possible, and preserves Python semantics for defaults and structural protocols; demos show simple classes (counter) working via direct method calls with no manual casts. Decorators, metaclasses, unbounded integers and some ecosystem libs (NumPy) remain challenging.
AI-written summary · about
