~/talk

Conditional Execution of Transpiler Passes Based on Per-Script Feature Detection

Talkat SOAP 2026 · on Tuesday, 2026-06-16· [javascript, compilers-and-language-design]
links:none on file
slides:none on file

A compile-time change implemented in Google Closure Compiler tracks features per script as a per-script feature bitmask and lets each transpiler pass query that mask and skip full AST traversals when its target features are absent. Passes update the dynamic feature set to preserve downward monotonicity, and safeguards include pass order assertions, a dev-mode AST validator, and a post-transpile check. Evaluation on large Google apps shows 30–40% fewer transpiler traversals and roughly 50% faster transpilation across the fleet.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04JavaScript evolution needs
  3. 4:36Why transpilation is costly
  4. 8:51Optimizing transpiler passes
  5. 10:15Feature-based pass skipping
  6. 12:01Legacy vs optimized flow
  7. 13:28Preventing feature leakage
  8. 15:14Performance improvements
  9. 16:17Limitations and future work
  10. 17:41Key takeaways
~/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.