Unlock The Universal Parsers: A New PicoRuby Compiler
summary
Prism integration and a new PicoRuby compiler replace heavyweight parser paths and cut memory dramatically: parsing of puts 'Hello, World!' goes from 129.5KB (mruby Lrama) to 16.7KB (PicoRuby) to 9KB (Prism), and embedding with ruby_init drops to 39.91KB after work to remove VALUE and IMEMO and use custom C structs for arrays. ROM size shrinks from ~24MB to ~1.9MB by linking only parse.o/node.o, and remaining work focuses on arm-none-eabi cross-compile and completing VALUE-dependent API replacements.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:05Universal parsers overview
- 2:52PicoRuby compiler goals
- 6:47CRuby build process
- 8:12Embedding CRuby
- 9:20Memory usage comparison
- 11:31Removing VALUE type
- 15:30Removing IMEMO objects
- 18:50Memory reduction results
- 20:43Cross-compilation challenges
- 23:51Bare-metal configuration
- 24:34Reducing ROM size
- 26:08PicoRuby future plans
- 27:11Summary and Q&A








