Fast Ruby/Rails interop?

Is there any way to expose Beam processes as dynamincally linked native libraries? If so, then Ruby FFI could work.