Polyglot on the JVM with Graal: One VM for Java, node.js, Ruby, R, and C++!
summary
Graal adds a Java-written JIT and Truffle interpreter framework plus Sulong LLVM support to run many runtimes together; benchmarks show 4–5x speedups for Ruby and R, ≈1.2x for Scala and ~0.9 vs V8 for JS, and large C code runs within ~85% of native. Truffle specializes AST nodes and produces native blobs; SubstrateVM can AOT-link a language into a 61 MB dynamic library with 107 KB startup and exposes near-zero-cost cross-language calls via a polyglot engine.
AI-written summary · about
chapters (8)
- 0:00Introduction and motivation
- 7:23Introducing Graal compiler
- 16:24Truffle framework for language implementation
- 21:02Sulong for native code integration
- 25:54Polyglot interoperability demo
- 33:03Substrate VM for embedding
- 43:18Practical embedding example with Graal.js
- 49:01Summary and open source resources
related talks
47mPolyglot Done Right with GraalVM
50mOne VM to Rule Them All
01h 19mTowards the tower of Babel: a Polyglot Language VM in Java
20mGraalVM: Run Programs Faster Anywhere
59mGraalVM: Run Programs Faster Anywhere
31mSimplifying and Optimizing Life on the Edge with Graal
47mThe need for speed. What is GraalVM and how can it help you?
54mDeveloper's Introduction to GraalVM
