Uzumibi: Reinventing mruby for the Edges
Can Ruby be practically deployed in edge computing environments like Cloudflare Workers, Fastly Compute, or Spin? In this talk, I will introduce "mruby/edge" and "Uzumibi," a framework built upon it to bring the power of Ruby to the edge.
mruby/edge is an mruby-compatible VM built from scratch in Pure Rust. It generates highly portable Wasm binaries, enabling minimal builds under 400KiB.
Since RubyKaigi 2024, mruby/edge has evolved significantly. It now supports basic OOP features, exception handling, closures, control structures, keyword args, and feature flags.
Uzumibi is a lightweight web framework leveraging mruby/edge. Uzumibi can run the same Ruby code across multiple edge platforms, providing a simple web API.
mruby/edge and Uzumibi are opening new possibilities for Ruby in edge computing, where Ruby has traditionally been difficult to utilize. I'll discuss why I built a VM from scratch for Wasm and edges, share the challenges and solutions, and present the future roadmap.
-
Uchio KONDORubyist, Rustacean wannabe, and system programming novice, based in Fukuoka, Japan. Product engineer at SmartHR, Inc. Author of "mruby system programming," co-translator of the Japanese edition of "Learning eBPF," organizer of Fukuoka.rb, RubyKaigi speaker since 2016, RubyKaigi local organizer in 2019 at Fukuoka.