mrkn / pycall.rb

Calling Python functions from the Ruby language
MIT License
1.05k stars 72 forks source link

[DRAFT] Support for TruffleRuby/GraalVM #125

Open jouhlmann opened 4 years ago

jouhlmann commented 4 years ago

As part of a university project we tried to explore different options to support PyCall running on TruffleRuby (GraalVM). The choices we made are:

In the current form it's working fine and passes almost all Unit Tests (except some that depend on native extensions and half of spec/conversion_spec.rb), but judging by code-review by @eregon the current structure of having duplicated code for the TruffleRuby variant might make it unmaintainable. Our thought was that merging the code and adding a lot of if RUBY_ENGINE=='truffleruby' might also be suboptimal.

We would like to ask you for your feedback: What do you think? What should be improved? How do you feel about enabling PyCall to run on TruffleRuby (GraalVM)?

(/cc @stefreschke @eregon @fniephaus)