~/talk

Design a new language in JS: from zero to autocomplete

Talkat jsday 2025 · 2025-04-07..04-08· [developer-experience, typescript]
links:none on file
slides:none on file

Claims a workable pipeline: a PeggyJS parser generates an AST, three service APIs (evaluate, validate, autocomplete) run on top, and the whole thing embeds into the Monaco editor with live suggestions. The build includes a basic grammar, a validation engine that uses metadata, caching and partial checks, and an autocomplete strategy that uses fake-marker filling to parse invalid input. The approach is tried twice and yields usable autocomplete and diagnostics by trading strict grammar for validation + autocomplete APIs.

AI-written summary · about

  1. 0:00Need for new language
  2. 2:54Grammar and PEG
  3. 7:31Building the abstract syntax tree
  4. 11:50Validation engine
  5. 17:05Autocomplete features
  6. 22:19Monaco editor integration
  7. 24:48Summary & Q&A
~/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.