Polyglot done right with GraalVM
summary
GraalVM claims to run Java, JavaScript (Node 12.05 LTS), Python 3.8, R 3.6.1, Ruby and WebAssembly together with Truffle 265 and without huge language-boundary cost. Practical details cover Engine and Context APIs for creating isolated polyglot sandboxes, Value and Proxy objects for passing and lazy‑exposing data, and configuration flags for compilation and security. Demo microservice shows Java calling JS and back, with some live demo flakiness but working integrations in production (Helidon/Orkla) and ECMAScript 2020 compatibility.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 2:11What is GraalVM and polyglot
- 8:42Why polyglot apps are common
- 14:17GraalVM polyglot demo
- 24:20Key GraalVM polyglot APIs
- 37:32Working with polyglot values
- 49:48Proxy objects in polyglot
- 55:38Demo: Java and JavaScript integration
- 1:03:09Performance and compatibility
- 1:08:31GraalVM ecosystem and future
- 1:10:21Q&A on dependencies and polyglot
