~/talk

Modules for JS.next

Talkat JSConf US 2011 · 2011-05-02..05-03· [javascript, frontend-architecture]
slides:none on file

Proposes adding a real module system with a module keyword and explicit export/import so declarations are local by default, plus compile‑time loading that does IO in a preexecution compilation phase so the UI thread does not block. Declares modules as singletons, supports static imports (including import.star) with early errors, and dynamic require callbacks. Prototypes live in a metacircular evaluator called Narcissus and a Firefox add‑on zaphod, demos work there, and the plan targets early deployment (Firefox ~7) while tooling and polyfills bridge today’s npm/AMD/CommonJS ecosystem.

AI-written summary · about

  1. 0:00Introduction
  2. 3:18Module Pattern
  3. 5:10Design Pattern
  4. 5:35Frameworks
  5. 6:16Common JS
  6. 8:17Creating a Module
  7. 10:10The Trick
  8. 13:52Singletons
  9. 14:17Dynamic Loading
  10. 15:58eval is evil
  11. 20:07Overview
  12. 20:38Demo
  13. 29:21Proxy
  14. 30:05ImportStar
~/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.