MicroRuby: True Microcontroller Ruby
summary
MicroRuby combines the PicoRuby compiler with the full mruby VM and implements preemptive task scheduling by using mrb_context lists and marking contexts in GC, plus a custom estalloc allocator for accurate RAM stats. The result runs the R2P2 demo (Wi‑Fi pairing, HTTPS sensor uploads, IRB) on a Pico 2, using about 109 kilobytes of RAM versus PicoRuby’s ~49–78 KB when gems are loaded, showing feasibility for larger IoT apps.
AI-written summary · about
chapters (6)
- 0:00Introduction to MicroRuby
- 2:49PicoRuby vs MicroRuby
- 10:17Implementing R2P2 in MicroRuby
- 13:47Adding Preemptive Task Scheduling
- 20:29Measuring RAM Consumption
- 26:10Summary and Future Plans
related talks
33mmruby/c: Running on Less Than 64KB RAM Microcontroller
36m(m)Ruby on small devices
30mPicoruby and PRK Firmware
31mA Beginner's Complete Guide to Microcontroller Programming w..
34mEmbedding Ruby into your Daily Life
30mPicoRuby as a Multi-VM Operating System
35mmRuby meets iOS and RTOS
36mmruby: AltRuby
