~/talk

The Different Transformation Stages of AOT Compilers

Talkat JSConf.Asia 2019 · 2019-06-14..06-16· [javascript, developer-experience]
github:DAB0mB
slides:none on file

Walks through concrete stages: parsing with babel parser into an AST (demonstrated in AST Explorer), regenerating with @babel/generator, and traversing with babel-traverse to apply transformations. Shows Node.js demos that parse a string, mutate nodes, and emit code; uses the env preset to target ES5. Presents two working Babel plugins: one that auto-inserts useMemo/useCallback style optimizations and one that rewrites styled‑component class names for encapsulation, with live demos proving they transform and reduce runtime work.

AI-written summary · about

  1. 0:00Start
  2. 4:21Backward Compatibility
  3. 6:54What Are the Stages of the Compilation
  4. 7:27Parsing
  5. 12:13Babel Parser
  6. 12:41Plugins
  7. 14:00Demonstration in a Node Js Application
  8. 17:05Optional Stage
  9. 23:13Traverse Function
  10. 25:32Babel Plugin
~/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.