Skip to content

Implementing PyCall.rb-like interop between TruffleRuby and Graal.python #1997

Open
@eregon

Description

@eregon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    polyglotUses multiple Truffle languages or host interop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions