GraalVM: The one to rule them all
summary
Shows GraalVM running Node.js on the JVM via Graal.js and Truffle and using Sulong for native-backed languages, with live demos: calling Java from JavaScript and vice versa, passing Java objects into JS, converting JS lambdas to java.util.Function, and a 11-line Node HTTP server that delegates file reads to Java. Solves Node’s single-thread limits by using Worker threads plus a blocking queue to synchronously wait for results. Builds an embedded Kafka/Rabbit example mixing Scala/Java/JS, and microbenchmarks (200×200 matrix multiply and directory traversals) showing comparable warmed performance.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 3:07What is GraalVM
- 8:51Running JavaScript from Java
- 14:59Passing Java objects to JavaScript
- 21:51Using Node.js with GraalVM
- 26:34Building a web server with JavaScript
- 29:14Java web server limitations
- 33:13Threading issues with Node.js
- 35:22Worker threads solution
- 43:40Integrating Kafka with GraalVM
- 49:23Performance benchmarks
- 53:53GraalVM use cases and benefits
- 56:06Q&A and closing remarks
