~/talk

Building an LSP Server in Zig

Talkat SquiggleConf 2024 · 2024-10-03..10-04· [compilers-and-language-design]
slides:none on file

A developer builds an HTML language server called SuperHTML language server and a static site generator called Zine static site generator using Zig, first trying TreeSitter then writing a custom HTML parser that treats unclosed tags as errors (trading spec compliance for useful diagnostics). The LSP is deployed on the VS Code marketplace, uses a Zig LSP kit for boilerplate, and hardens stability with coverage-guided fuzzing plus a generator tool (supergen); fuzzing finds real crashes in seconds and improves robustness.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:07Personal journey with static sites
  3. 4:15Problems with templating languages
  4. 7:22Choosing a parser library
  5. 10:55Writing a custom parser
  6. 14:50Spec compliance vs tooling needs
  7. 16:14Building the LSP server
  8. 18:40Fuzzing for robustness
  9. 21:27Demo of fuzzing process
  10. 26:46Call to action for accessible web
~/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.