Fast Ruby/Rails interop?

In theory yes, in practice it would be easier to do the other way around - implement Ruby VM as a NIF in BEAM. However if such cooperation is needed then I would look for ports or C-Nodes. The last one when ran on the same machine should result with pretty nice performance and API.