Chapter 9 – GraalVM Polyglot – LLVM, Ruby, and WASM
- Sulong is an LLVM interpreter that is written in Java and internally uses the Truffle language implementation framework. This enables all language compilers that can generate LLVM IR to directly run on GraalVM. Refer to the Understanding LLVM – the (Sulong) Truffle interface section for more details.
- GraalVM Enterprise Edition provides a managed environment of LLVM. The managed mode of execution provides a safe runtime, which, with additional safety, guarantees to catch illegal pointer accesses and access arrays outside of the bounds.
The TruffleRuby interpreter interoperates with the LLVM interpreter to implement the C extensions. This also extends the possibility to use other LLVM languages, such as Rust and Swift, to run as Ruby extensions. Refer to the Understanding the TruffleRuby interpreter/compiler pipeline section for more details.
- WASM is binary code that can run on modern web browsers....