Open
Description
MRI (CRuby) has a library to call out to Python called pycall.rb.
It would be interesting to make this work in GraalVM with TruffleRuby + GraalPython, where we could likely have a much simpler system (no serialization, no need to integrate with the GC, etc), and potentially better performance.
If we can, we'd basically make all the good scientific computing/ML libraries from Python available to Ruby (well, those running on GraalPython), with better performance and better interop than is possible when stitching two different VMs.
Longer term, it might be worth exploring having a GraalVM-backend in the upstream repository https://github.com/mrkn/pycall.rb.
cc @fniephaus