~/talk

JavaScript Compilation Techniques or "Wasn't JavaScript supposed to be slow?"

Talkat JSConf US 2011 · 2011-05-02..05-03· [javascript]
slides:none on file

Claims measurable speedups—roughly 100× faster since 2001 on SunSpider-like tests—and concrete techniques: compiling to machine code (V8 compiles eagerly, others tier and trace), bytecode+JIT, NaN tagging or 64-bit value layouts to avoid boxing, and polymorphic inline caches backed by hidden classes for property lookups. Generational GC and per-origin heaps reduce pause times. Benchmarks show lookup-miss and deep prototype changes slow things, caches break around ~10 object variants, and eval/with force conservative fallbacks.

AI-written summary · about

  1. 0:00Intro
  2. 1:30Perspective
  3. 8:28Static scope
  4. 11:07Local eval == magic
  5. 13:25Basic unboxing
  6. 17:13The heap grows
  7. 18:09Mark, sweep
  8. 19:19Divide and conquer
  9. 20:18Generational GC
  10. 23:45Inline caching
  11. 24:43Hidden classes
~/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.