Spinel - Ruby AOT Compiler

Spinel 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.

This is pretty crazy, I’m very excited by this project but a little concerned about the heavy Claude usage.

It could mean a whole new world for Ruby if it’s a serious project. Distribution of Ruby projects has always been one of my biggest pet peeves. I hope it can do cross compilation too.

4 Likes

Yeah, this is interesting but, you’re right, the heavy use of Claude is discouraging. The limitations with eval, metaprogramming, threads (although, interestingly, fibers are supported), and function composition pretty much kills all of the code I write/work with.

There are alternatives:

4 Likes

If metaprogramming cannot be supported at runtime, you really want something like Crystal macros.

2 Likes