danielpclark / rutie

“The Tie Between Ruby and Rust.”
MIT License
939 stars 62 forks source link

Use native Ruby function for getting a string's length #174

Closed mpalmer closed 1 year ago

mpalmer commented 1 year ago

Without this change, Ruby 3.2 was failing to correctly provide me with strings, because the length was always set to zero.

I'm not sure exactly what the change in 3.2 that triggered the problem, but given that rutie's rstring_len appears to be an implementation of a function in CRuby that's named rbimpl_ (which is a namespace meaning "no compatibility should be expected", I don't think this is Ruby's fault.

danielpclark commented 1 year ago

I'll try and set some time this week to get things update a bit on this project.

danielpclark commented 1 year ago

This will be considered for the Ruby 3 implementation. For now I'm revamping the Ruby 2 CI support, then I'll move on to addressing these issues.