~/talk

The Life of a JavaScript Feature in V8 ft. TypedArrays

Talkat Nordic.js 2018 · on Sunday, 2018-10-07· [javascript]
slides:none on file

Implements a new typed array prototype.clear and compares four implementations: self‑hosted JavaScript, C++, Torque, and code‑stub‑assembler (CSA). Benchmarks show JS is slow, C++ is surprisingly slower than Torque/CSA, and memset optimization (direct backing‑store zeroing) wins on hot loops. Explains the cross‑world call overhead that hurts C++, demonstrates a byteLength getter exploit that motivated safer paths, and argues for using v8 torque as a safer, fast DSL for built‑ins.

AI-written summary · about

  1. 0:00Start
  2. 1:29Overview
  3. 2:15V8 High Level
  4. 5:00JS Features - Syntax
  5. 14:00Torque Code Example
  6. 15:47Torque Compilation Process
  7. 18:00C++ Implementation
  8. 18:59Torque Implementation
  9. 19:36CSA Implementation
  10. 20:00Benchmark Time
  11. 22:41Raw Memory View
  12. 23:06The classic typed array exploit
~/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.