Overview
Explore the integration of V8 JavaScript as a sister javax.script to Nashorn in this 47-minute Java conference talk. Delve into the challenges and solutions of implementing a high-performance JavaScript runtime in Java with a native JVM. Learn about native overhead, build issues, memory management, and API adaptation. Discover the JVMV8 proof of concept, performance considerations, and code examples for both Java and JavaScript sides. Examine V8 objects in Java, Java objects in V8, and the JavaScript constructor generator. Gain insights into garbage collection strategies, multi-threading API implementation, and Node.js integration with Java. Investigate sustainable JavaScript solutions for JVM and ongoing experiments in this comprehensive exploration of Native Script Engine and Go Panama.
Syllabus
Intro
Overthinking A Title
Back Story
Nashorn Backlog
Let's Face It, V8 Rules
Proof Of Concept: JVMV8
Rough Notes on Performance
Example: Java Side
Example: JavaScript Side
Example: Beyond Nashorn
JVMV8 Components
V8 Objects In Java
Java Objects in V8
JavaScript Constructor Generator
V8 JNI primitives
jvmv8.boot
Garbage Collection Java Side
Garbage Collection V8 Side
Multi-threading API
Example: Multi-threading
Node.js: Creating JVM
Node.js: Using Java
Sustainable JavaScript for JVM
Experiments In Progress
Taught by
Java