~/talk

Speed, Speed, Speed: JavaScript vs C++ vs WebAssembly

Talkat CovalenceConf 2019 · on Wednesday, 2019-01-16· [javascript, webassembly]
slides:none on file

Modern JavaScript reaches near‑native speed for CPU‑bound code — a prime‑sieve example runs ~8s in C++ vs ~15s in V8, under a factor of two — by using JIT compilation plus an optimizing compiler that collects runtime feedback and emits guarded fast paths, falling back via deoptimization when assumptions break. Node supports native C++ addons for heavier work, and WebAssembly sits between JS and C++ in speed. V8 flags let developers trace optimization and inspect generated assembly.

AI-written summary · about

  1. 0:00Intro
  2. 8:13Intuition
  3. 8:34Data
  4. 10:09Compilers
  5. 13:14Code
  6. 13:37Machine Code
  7. 18:29No Optimization
  8. 19:17Optimization Data
  9. 22:29Native Modules
  10. 23:27Sample Build File
  11. 24:41WebAssembly
  12. 27:31Summary
  13. 29:03QA
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.