Building CLI Apps for Everyone
summary
Explains how mruby-cli compiles Ruby into a statically linked, self-contained binary for Linux, macOS and Windows, using mrbc ahead-of-time bytecode and Docker-based cross-compilation. Shows concrete numbers: typical Ruby hello world boots ~41ms on MRI versus ~3ms with mruby, and an example macOS binary is ~421 KB. Describes workflow files (build config, gemspec, generated C bootstrap), testing with mtest unit and shell integration tests, and current limits around native extensions and gem compatibility.
AI-written summary · about
chapters (9)
- 0:00Start
- 8:34Dashboard
- 11:53mruby build system
- 13:52Limitations
- 14:18Porting Existing Gems Nontrivial
- 16:22performance is a feature
- 18:11simple setup
- 19:5964 bit and 32 bit Linux binaries
- 20:0964 bit and 32 bit Windows binaries








