~/talk

Types, TypeScript and the JIT

Talkat React Alicante 2024 · 2024-09-19..09-21· [typescript, web-performance]
github:dminor
slides:none on file

Concrete claim: TypeScript never hurts JIT performance and can make type behavior more predictable but offers no guarantees because TypeScript types don't always match engine representations (e.g. TS "number" vs engine 32‑bit ints and doubles and an array-out-of-bounds can still be undefined). Implementation details: spider monkey uses inline caches and native stubs, two-tier JIT (Baseline and Ion compilers), and bails out to the interpreter when assumptions fail, sometimes throwing away compiled code; inline caching yields about 2× speedup in common workloads.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12Russell’s Paradox and types
  3. 2:35Type checking and inference
  4. 3:38TypeScript design goals
  5. 5:04JIT compilation fundamentals
  6. 6:48Dynamic dispatch and caching
  7. 8:55TypeScript and JIT performance
~/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.