~/talk

Real Time Recompilation of Running JavaScript

Talkat JSConf US 2013 · 2013-05-28..05-30· [developer-experience]
slides:none on file

Proof-of-concept recompiles running JavaScript without restarting the app, demoing live edits (the live demo trips in places). It generates functions with a direct eval injected compiler so closures and original call contexts survive, rewrites function declarations and named-function-expression rewrites via a parser, preserves arguments, and uses lazy cached recompilation to avoid constant eval overhead. Limitations: inserting new functions breaks the one-to-one mapping, injected compiler pollutes scope, and only reevaluated callbacks or functions pick up changes.

AI-written summary · about

  1. 0:00Introduction to recompiling
  2. 1:14Concept of live compilation
  3. 3:51Basic live coding demo
  4. 6:12Overcoming limitation challenges
  5. 8:25Handling function arguments
  6. 13:26Managing closures
  7. 18:11Function expressions and loops
  8. 23:15Performance and caching
  9. 26:22The 'indirect direct' trick
  10. 28:51Recap and open issues
~/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.