♫musicjinni

Tobias Tebbi: V8 Torque: A Typed Language to Implement JavaScript

video thumbnail
Jfokus VM Tech Summit 2020 https://www.jfokus.se/vmtech #jfokus #V8 #javascript

When implementing a language VM, there are a number of choices on how to implement the runtime and standard library. For the V8 JavaScript engine, we have tried many different approaches over the years: handwritten assembly, C++, self-hosted (i.e., using JavaScript) and more. With V8 Torque, we now have our own domain-specific language to write JavaScript built-in functionality in a statically typed language compatible with our runtime and garbage collector. This enables better productivity by having maintainable code, better security by static checking, and seamless inter-op with the rest of the system. With V8 Torque, we expose VM internals while hiding and enforcing invariants and assumptions.

Tobias Tebbi, Google
Tobias is a software engineer at Google Munich. As part of the V8 team, he works on V8 Torque, a domain-specific language for the V8 JavaScript and WebAssembly engine that exposes VM internals in a safe and performant way.

Tobias Tebbi: V8 Torque: A Typed Language to Implement JavaScript

Disclaimer DMCA