RubyToC equivalent for Ruby 1.9

Hi!

I’ve been trying to follow the example at RubyInline page [1] where
RubyToC is used to “optimize” Ruby method by translating it into it’s C
code equivalent. I’m not getting the example working with Ruby 1.9.3
since some of the underlying components are not compatible with Ruby 1.9
(as a sidenote, i’m not also getting it working with 1.8.7 due to other
problems too, but that’s not my goal either).

I was wondering if there’s any other tool which might help to achieve
the same goal - to translate Ruby code into C so i could use RubyInline
with that instead of RubyToC?

I’ve found so far sourcify [2] which can give me sexp, but can’t figure
it out how to convert it into C.

[1] - rubyinline | software projects | by ryan davis
[2] - GitHub - ngty/sourcify: Workarounds before ruby-core officially supports Proc#to_source (& friends)

Thanks for your help!

Jarmo

Does it mean that there’s no alternatives since i haven’t got a single
reply?

Jarmo

Hi Jarmo,

I was googling around rubyToC and found your post. I also found this
github repository which seems to address 1.9 compatibility:

Cheers,
Graza.