~/talk

JavaScript as a compilation target - Making it fast

Talkat JSConf EU 2012 · 2012-10-06..10-07· [javascript]
links:none on file
slides:none on file

The Dart-to-JavaScript compiler dart2js compiles closures to classes, replaces operators with static interceptors, and runs local SSA-based optimizations plus function inlining and loop hoisting; it does speculative optimizations with bailouts to get speed while trading code size. Benchmarks hit about 75–78% of handwritten V8 performance, static interceptor code can be 6× (sometimes 23×) slower before optimization, and speculative guards increase output size by ~15–72%; tree-shaking and a Dart-aware minifier shrink unused code.

AI-written summary · about

  1. 0:00Start
  2. 2:32Example: What's the point?
  3. 9:42Interceptors
  4. 11:45Example: Sum the elements of a list Compiled JavaScript code with local type inference
  5. 21:07Code size
  6. 22:00Performance
~/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.