Building an LSP Server in Zig
summary
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
chapters (10)
- 0:00Introduction and motivation
- 1:07Personal journey with static sites
- 4:15Problems with templating languages
- 7:22Choosing a parser library
- 10:55Writing a custom parser
- 14:50Spec compliance vs tooling needs
- 16:14Building the LSP server
- 18:40Fuzzing for robustness
- 21:27Demo of fuzzing process
- 26:46Call to action for accessible web
related talks
36mExperiences Building a Language Server Protocol Plugin
28mModern language engineering with Langium
22mEasier Lint Authoring with Semantic Search and (...)
31mGraal-LSP: A Language Server Implementation with Polyglot Support for the GraalVM
40mIntegrating IDEs with Dotty the experimental Scala compiler
01h 02mProgramming Language Research for Technical and Social Good: What PL Can Do for Good?
39mIDE development with Ruby
41mZig Build System & How to Build Software From Source
