Chapter 7: GraalVM Polyglot – JavaScript and Node.js
In the previous chapter, we looked at how Truffle provides a layer to integrate other language programs to run on GraalVM. In this chapter, we will focus on JavaScript and Node.js interpreters, and in the next chapter, we will cover other runtimes, such as Java/Truffle, Python, R, and WebAssembly. We will be covering aspects of the polyglot interoperability features of Truffle and exploring the JavaScript interpreter. We will be exploring these features hands-on by writing code.
In this chapter, we will cover the following topics:
- Understanding how to run non-JVM language applications on Graal, specifically JavaScript and Node
- Learning how to pass objects/values between applications written in different languages
- Understanding how to use optimization techniques to fine-tune the code
By the end of this chapter, you will have a very clear understanding of how to build a polyglot application on GraalVM...