Library:mruby
Appearance
| On this wiki | Facts · Code · Notes · Topics |
|---|
mruby is the lightweight embeddable Ruby implementation (MIT, Matz and contributors) used in games, devices and tools; its scripts ship as RITE bytecode (.mrb) or as C byte arrays.
Overview
mruby (github.com/mruby/mruby, MIT) compiles Ruby source to irep bytecode with mrbc; applications embed the VM and load .mrb files or arrays compiled into the executable. See Format:mruby bytecode (RITE) for the layout.
Identification
- A blob starting with the ASCII
RITEfollowed by four version digits is mruby (read in include/mruby/dump.h). Unverified: it is unrelated to the RGSS Ruby of Library:RPG Maker. - Unverified: exported names such as
mrb_openidentify a dynamic build (the function names mrb_load_irep_file and mrb_read_irep_buf are declared in dump.h).
Related
Library:Lua, Library:Squirrel, Library:Luau.
Code & repositories
- https://github.com/mruby/mruby @
b1cafb966b75d90b081b56853c6c64f9977b66e8· license: MIT
mruby source (MIT): include/mruby/dump.h defines the RITE header and section idents, src/load.c reads them.
Tested on: source read, not run · checked 2026-10-19; last activity 2026-10-19