~/talk

Picoruby and PRK Firmware

Talkat RubyConf 2021 · 2021-11-08..11-10· [ruby]
slides:none on file

PicoRuby is an mruby-derived interpreter and compiler that compiles keymap.rb on-device and hot-reloads it into PRK Firmware, a Ruby keyboard framework that runs on RP2040 (Raspberry Pi Pico). The pico ruby compiler measures ~17 KB vs mrb compiler ~133 KB for hello world, and compiles a mesh keymap in ~62 KB vs 206 KB (≈70% smaller). Demos include a Fibonacci generator, password generator, modifier inversion and an IRB-like ruby mode; the firmware works within the Pico’s 264 KB RAM.

AI-written summary · about

  1. 0:00Intro
  2. 2:15When you build a keyboard You can choose Keycaps for appearance and touch
  3. 3:23Keyboard firmware
  4. 4:32e.g. prk_pipigherkin/keymap.rb
  5. 6:11Install into the microcontroller
  6. 6:35A new drive automatically mounted
  7. 7:21Demonstrations
  8. 8:03Fibonacci in keymap.rb
  9. 8:52Password generator in keymap.rb
  10. 12:15Micon of PRK Firmware
  11. 13:42Ruby Association
  12. 14:58Multitasking
  13. 17:34Architecture
  14. 19:42To make a small Ruby compiler mruby-compiler depends on mruby The main reason for big footprint
  15. 20:55RAM consumption
  16. 22:18keymap.rb of meish2 (2388 bytes)
  17. 22:44mrbc keymap.rb - 206.1 KB
  18. 22:56Summary
  19. 24:04Depending on only libc and less glibc for desktop/server application newlib for embedded application
  20. 25:09Padding in a struct
  21. 25:51Paddings waste memomy
  22. 26:09Pooled allocation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.