Unchaining Charm: Making Developer Tools Speak Every Language
summary
Lip Gloss is already ported to JavaScript by compiling Go to WebAssembly so the npm package exposes nearly the same API, with TinyGo cutting a Lip Gloss WASM binary from about 6 MB → 400 KB. Porting relies on mapping Go strings as memory buffers and explicit pointer/address reads, plus small JS wrappers for callbacks; heavier frameworks like Bubble Tea may still need full go build because of inversion‑of‑control. A Rust-based Go parser/compiler (goab) and WASM→C transpile paths produce Rust and Zig ports.
AI-written summary · about
chapters (16)
- 0:00Introduction and motivation
- 3:07Investigating Lip Gloss
- 6:09Choosing a target language
- 9:16Understanding Wasm internals
- 12:26Compiling Go to Wasm
- 14:36Compiler options and strategies
- 19:02Handling data and types
- 20:17Data binding implementation
- 24:00Binding with custom structs
- 25:52Why TinyGo for Lip Gloss
- 27:23Framework considerations
- 29:36Publishing Lip Gloss for JS
- 30:39Expanding to other languages
- 31:46Performance benchmarks
- 32:37Examples in Rust, Zig, and C++
- 33:09Conclusion and Q&A
