~/talk

Fantastic ASTs and where to find them

Talkat JSConf AU 2018 · on Tuesday, 2018-04-10· [javascript]
slides:none on file

A working Parseltongue→JavaScript transpiler is built end to end: lexer produces tokens, a parser builds an AST, the AST is mutated to ban or rewrite dangerous calls, and code generation plus source maps produce runnable JS and browser debugging. Specific tools shown are esprima, escodegen, esquery. The demo replaces unforgivable functions with rictusempra, emits three alerts, debugs back to Parseltongue source and frees Harry inside about 25 minutes.

AI-written summary · about

  1. 0:00Start
  2. 3:15Weakly Typed
  3. 3:32Variable Declarations
  4. 4:07Function Expressions
  5. 4:30Call Expression
  6. 7:29Converting variables
  7. 7:55Converting loops
  8. 8:25Converting functions
  9. 11:36Abstract
  10. 14:19Tokens in JavaScript
  11. 16:54Function Declaration
  12. 22:28Detect bad stuff
~/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.