How to write a programming language and shell in Go with 92% test cov. and instant CI/CD
summary
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
chapters (8)
- 0:00Introduction to Elvish
- 3:16Elvish as a programming language
- 7:35Interactive features demo
- 11:53Implementation overview
- 24:41Testing strategy for 92% coverage
- 35:41Testing UI and terminal app
- 39:14CI/CD and deployment
- 40:23Q&A session
related talks
01h 00mHow to write a programming language and shell in Go with 92% test coverage and instant CI/CD
23mGo as a Scripting Language in Linux
39mIs Go A Good Language to Build Compilers?
23mFrom JS to Go
15mGo as a scripting language in Linux
32mBuilding a Beginner's Programming Language with Go
59mUnleashing the Go Toolchain
01h 24mAn Introduction To Go Lang
