~/talk

How a JavaScript engine works: learn to write optimizable JS

TalkinFrenchat Sunny Tech 2022 · 2022-06-30..07-01· [javascript, compilers-and-language-design]
slides:none on file

Explains how JavaScript engines (V8, SpiderMonkey, Chakra) convert human-readable JS into CPU code, covering internal object representations and just-in-time (JIT) compilation. Uses that engine-level understanding to show concrete ways to write more optimizable JS—including costs of constructs like arrow functions—so developers can improve application performance.

AI-written summary · about

  1. 0:00Introduction
  2. 1:31Machine language and interpretation
  3. 6:06Just-in-time compilation
  4. 7:51Parsing and bytecode
  5. 11:27Bytecode execution
  6. 11:49Object optimization
  7. 16:26Inline caching
  8. 19:59Closures and memory
  9. 21:43Turbofan and optimization
  10. 23:28Speculative optimization
  11. 26:38Writing optimizable JS
  12. 28:43Optimization best practices
~/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.