Sunday, April 13, 2025

JavaScript V8 engine internals

very "technical" and interesting

Land ahoy: leaving the Sea of Nodes · V8  
"V8’s end-tier optimizing compiler, Turbofan, is famously one of the few large-scale production compilers to use Sea of Nodes (SoN). However, since almost 3 years ago, we’ve started to get rid of Sea of Nodes and fall back to a more traditional Control-Flow Graph (CFG) Intermediate Representation (IR), which we named Turboshaft. By now, the whole JavaScript backend of Turbofan uses Turboshaft instead, and WebAssembly uses Turboshaft throughout its whole pipeline."



Google created V8 for its Chrome browser, and both were first released in 2008.[4] The lead developer of V8 was Lars Bak, and it was named after the powerful car engine.[5] For several years, Chrome was faster than other browsers at executing JavaScript


In 1994, he joined LongView Technologies LLC, where he designed and implemented high performance virtual machines for both Smalltalk and Java. After Sun Microsystems acquired LongView in 1997, Bak became engineering manager and technical lead in the HotSpot team at Sun's Java Software Division where he developed a high-performance Java virtual machine

With a team of 12 engineers, Bak coordinated the development of the V8 JavaScript interpreter for Chrome

Bak co-developed the Dart programming language presented at the 2011 Goto conference in Aarhus, Denmark



No comments: