~/talk

How to write a programming language and shell in Go with 92% test coverage and instant CI/CD

name:Qi Xiao
links:none on file
slides:none on file

Builds a full programming language + shell (Elvish) in Go and claims 92% test coverage. Implements a tree‑walking interpreter with a static analyzer and an op‑tree exec model, uses os.StartProcess/os.Pipe plus channels and goroutines to implement shell pipelines, and finds a parser exponential‑time bug via fuzzing. Testing is automated by recording terminal transcripts into tests and a VS Code extension that inserts outputs; a small Go webhook listener builds binaries on every Git commit.

AI-written summary · about

  1. 0:00Intro
  2. 1:02Agenda
  3. 1:32What's Elvish?
  4. 10:37Implementing the Elvish interpreter
  5. 25:14Testing the Elvish interpreter
  6. 32:30Testing the terminal app
  7. 39:01Miscellaneous bits
  8. 46:44Q&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.