~/talk

Unshackling JavaScript with Macros

Talkat MountainWest JavaScript 2014 · on Friday, 2014-03-21· [javascript]
slides:none on file

A working macro system called sweet.js implements hygienic macros that add an expansion phase before parsing and compiles invalid JavaScript into valid code, enabling ES6 destructuring, classes and fat‑arrow syntax plus function tracing and pattern matching. It preserves scopes to avoid name collisions, generates source maps (sjs -c), ships via npm, and is already used to prototype language features instead of waiting years for ECMA standardization; a related blog post reached about 50,000 views.

AI-written summary · about

  1. 0:00Start
  2. 12:26pattern classes
  3. 14:57'let' macros
  4. 15:55repeating patterns
  5. 17:55hygiene
  6. 20:25infix macros
  7. 22:47case macros
  8. 31:50want static allocation?
  9. 32:05want pattern matching?
~/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.