~/talk

JavaScript AST programming: Introduction and beyond

links:none on file
slides:none on file

Live coding builds a small CLI that reads a file or stdin, parses JavaScript with acorn into an ESTree-like AST (~400 node kinds mentioned), traverses nodes to detect patterns like console.log and problematic binary + conversions, performs edits (remove logs, replace unsafe plus with Number calls), and prints either transformed code or AST JSON streaming. The pipeline uses a parser, a traversal library and a generator and demonstrates the changes working end to end.

AI-written summary · about

  1. 0:00Introduction to JavaScript AST
  2. 12:27What is an Abstract Syntax Tree
  3. 16:40Building a JavaScript parser
  4. 24:08Exploring AST structure
  5. 30:20Generating code from AST
  6. 34:38Common AST manipulation patterns
  7. 38:08Traversing the AST
  8. 40:24Practical AST use cases
  9. 43:16Q&A and closing
~/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.