~/talk

Elegant by Design: Javascript in Javascript

Talkat jsday 2025 · 2025-04-07..04-08· [javascript]

Claims that JavaScript is elegant by design because it implements itself and shows a simple JavaScript self-implementation: a hand‑written scanner, a top‑down/bottom‑up parser, and a stack‑machine VM whose bytecode are JS functions. The compiler is ~1,200 lines, targets a 2013‑era subset (no async/promises), compiles itself and runs examples (closure example returns 30). Scanner avoids regexes, runtime uses nested environments and a value stack, and the implementation demonstrably works.

AI-written summary · about

  1. 0:00Introduction
  2. 3:11Languages as self-describing systems
  3. 9:01Functional vs imperative origins
  4. 14:23Self-referencing formal systems
  5. 17:39Early self-interpreting languages
  6. 20:33Elegance via self-implementation
  7. 23:47Building JS compiler from scratch
  8. 27:42Stack machines: beauty and history
  9. 32:35Parsing for compiler implementation
  10. 37:41Stack-based expression evaluation
  11. 38:48Closure compilation demo
  12. 42:29Conclusion
~/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.