~/talk

Join the super secret V8 club & become a JavaScriptbender

Talkat CascadiaJS 2022 · 2022-08-30..09-02· [javascript, nodejs]
slides:none on file

Explanation of V8 internals and practical hacks: Ignition, Sparkplug and TurboFan compile tiers are named and compared; changing argument types forces deoptimization via hidden maps (hidden classes) and SMI/type transitions; using --trace-opt / --trace-deopt and native syntax shows when functions move between interpreted, baseline and optimized code; an optimized loop benchmark goes from about 70M → 161M ops/s; the inspector protocol yields CPU profiles and heap dump via inspector for remote debugging; snapshots are arriving for faster Node startup.

AI-written summary · about

  1. 0:00Intro
  2. 1:12JavaScript engines
  3. 1:40V8 engine V8 is the JavaScript engine created by Google and used for Chrome, Chromium, Node.js, Deno, MS Edge, mini_racer and many more. V8 is an open source project, written mostly in C++.
  4. 7:18V8 code de-optimization
  5. 12:48are optimized functions really faster?
  6. 14:07Question 2: can I check the optimization status of a function from within the code?
  7. 16:04can I manipulate memory-related stuff?
  8. 17:00Chrome Debug Protocol
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.