mruby can be more lightweight
summary
Proposes moving immutable method data into ROM and keeping only runtime-added methods in RAM, modifies mruby method-table layout (adds an mt2 layer), and strips bytecode and unused symbols at build time via linker script options. Implements these changes in a patched mruby build and demonstrates it running on an evaluation board with 96 KB RAM, showing total RAM use drops into that range. Uses bytecode stripping and use ROM instead of RAM and the demo works.
AI-written summary · about
chapters (17)
- 0:00Introduction and self-introduction
- 2:18Goals of mruby lightweight project
- 5:11Demo of mruby debugging on VS Code
- 8:35Robocon with mruby
- 9:42Work-life balance and community support
- 10:54Why mruby needs to be lightweight
- 14:11Choosing the STM32F4 board
- 15:37Memory reduction strategies
- 20:05Method table and RAM optimization
- 23:42Book recommendation
- 24:29Method table changes in mruby
- 27:49Method lookup and execution
- 28:37Bytecode stripping
- 29:20Reducing hash table size
- 30:31Linker script adjustments
- 32:06Future plans and improvements
- 34:13Q&A session
related talks
27mROM: the final frontier of mruby
29mWhat's happening when initializing mruby?
36mmruby: AltRuby
40mmmm..mruby, or why yet another Ruby implementation
36m(m)Ruby on small devices
29mmake mruby more portable: Why and How
33mmruby on the minimal embedded resource
24mRuby in the 8 Bit World - A Small mruby VM for the Zilog Z80
