Java / GraalVM Interview questions
Define polyglot programming in the context of GraalVM?
Polyglot programming on GraalVM means writing an application where multiple languages - say Java, JavaScript, and Python - run in the same process, on the same runtime, and can call into each other directly without serialization or inter-process communication.
This is possible because every supported language is implemented as a Truffle interpreter, so they all compile down to the same Graal intermediate representation and share the same object model, garbage collector, and memory space.
A typical use case is calling a JavaScript validation library from Java business logic, or letting a Python data-science script hand results back to a Java service, all inside one JVM process.
It's accessed through the org.graalvm.polyglot API, primarily the Context class.
More Related questions...