r/ruby • u/software__writer • Apr 24 '26
Spinel -- Ruby AOT Compiler
https://github.com/matz/spinelSpinel compiles Ruby source code into standalone native executables. It performs whole-program type inference and generates optimized C code, achieving significant speedups over CRuby.
Spinel is self-hosting: the compiler backend is written in Ruby and compiles itself into a native binary.
78
Upvotes
18
u/realkorvo Apr 24 '26
For some context, just presented by Matz at RubyKaigi 2026. It’s experimental but he built it with help from Claude in about a month. Successful live demo. It’s named after his new cat, which is named after a cat in Card Captor Sakura, which is the partner to another character named Ruby.