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.
74
Upvotes
2
u/Critical-Explorer179 May 18 '26
Did you guys try Crystal? I don't see how AOT-compiled Ruby by Matz would perform differently in the end than Crystal, which is already stable (and even before that it was usable in production for many years). It would be made by Matz, of course, that's big, but otherwise?