~/talk

mruby on C#: From VM Implementation to Game Scripting

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [ruby, game-development]
name:hadashiA
links:none on file
slides:none on file

A C# reimplementation of the mruby VM called MRubyCS runs as a pure .NET package so Unity and other C# apps avoid native builds — installable via dotnet add package MRubyCS. Compatibility is strong: about 4,200 tests pass and Ruby semantics like return-from-block, singleton/include order, Fiber, and string APIs work. mrb_value uses 16 bytes in this port (trading memory for safety), performance reaches parity with C mruby when JIT tiers optimize, and exceptions and async/await interop are implemented so game scripting and hot-reload sequences run on the C# async stack.

AI-written summary · about

  1. 0:00Introduction to mruby in games
  2. 5:15Why mruby for game scripting
  3. 9:59Challenges embedding mruby in C#
  4. 15:36Solution: C# mruby VM
  5. 20:09Compatibility and performance focus
  6. 24:22Optimizing the C# mruby VM
  7. 30:04Results and call to action
~/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.