~/talk

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

Talkat GoLab 2024 · 2024-11-11..11-13· [go, compilers-and-language-design]
name:Qi Xiao
links:none on file
slides:none on file

Elvish is a shell and programming language implemented in Go that hits 92% test coverage and runs an instant CI/CD pipeline that builds and publishes prebuilt binaries on every Git commit. Implementation uses a tree-walking interpreter plus a static analyzer, reuses Go primitive types and big.Int/rational, and leverages Go goroutines and os.Pipe to implement pipeline semantics. Testing uses a simple DSL: recorded terminal transcripts, a VS Code extension to capture tests, and terminal UI tests driven by Elvish commands; CI uses GitHub Actions plus a lightweight webhook listener that builds on a VPS.

AI-written summary · about

  1. 0:00Introduction to Elvish
  2. 3:16Elvish as a programming language
  3. 7:35Interactive features demo
  4. 11:53Implementation overview
  5. 24:41Testing strategy for 92% coverage
  6. 35:41Testing UI and terminal app
  7. 39:14CI/CD and deployment
  8. 40:23Q&A session
~/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.