-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
seems to require re-writing in places #65
Comments
@simon-dedeo thanks for this investigation! I ended up downgrading to Ruby 2.7 to get GSL to work but I guess this is not a good solution. It'd be great to see a fork of this working for Ruby 3 (and modern Ruby 2 as well I guess). |
Who will put the bell on the cat! Do you have the skills?
Simon DeDeo
Carnegie Mellon University & the Santa Fe Institute
http://santafe.edu/~simon
… On Feb 22, 2021, at 6:44 PM, Paweł Świątkowski ***@***.***> wrote:
@simon-dedeo thanks for this investigation! I ended up downgrading to Ruby 2.7 to get GSL to work but I guess this is not a good solution. It'd be great to see a fork of this working for Ruby 3 (and modern Ruby 2 as well I guess).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I forked the repo and I plan to update tests to check all modern Ruby versions. Then I can release it as a gem. Any ideas for the name? |
Oh, wow, very cool. In terms of a name, gsl-reborn is great!
I think there probably needs to be a bunch more checks to be done on the GSL code. IIRC, my fixes seemed to break the “dup” method.
It would be lovely if we could keep this alive. It seems that a lot of scientific ruby projects are dying. The last update to statsample, e.g., was in 2017.
… On 23 Feb 2021, at 3:42 PM, Paweł Świątkowski ***@***.***> wrote:
I forked the repo and I plan to update tests to check all modern Ruby versions. Then I can release it as a gem. Any ideas for the name? rb-gsl-reborn?
|
I'm no longer active on this project, but I would support adding new maintainers (i.e. folks who are actually using/developing rb-gsl). That might be better than forking/renaming. |
@david-macmahon that's an option too. I'm no expert in GSL though, I only use it in Jekyll for similar posts 😉 But for sure I can do some maintenance chores, this is just Ruby after all. |
How does that work? I agree that it would be nice to keep things on the same name. I use GSL quite a bit, but don't have the technical skills to do more than help out occasionally. |
The most recent commit seems to be from almost 4 years ago so it seems unlikely to be current/compatible with modern Ruby and GSL implementations. Looking through the issues seems to confirm that. You two seem active, motivated, and competent so I'd vote for adding you both. It looks like the "SciRuby" organization has a "gsl-admin" team that you would need to be added to. I am a member of that team, but I cannot add new members. I think you might have to lobby someone in the SciRuby "core" team to get added to the "gsl-admin" team. |
It took some time to understand all the preprocessor magic and subtle changes in Ruby 3 C API, but I created a pull request that compiles against Ruby 3, passes tests and does not break backwards compatibility: #66 I have no idea who to "lobby" in order to get this live. |
Wow! Paweł, can you tell me how I can test this out on my system here? (I.e., how I can install this as a gem from your GitHub?) That will let me test things on my side as well and I can fiddle a bit.
Meanwhile, yes! I wonder if anyone with permissions sees this. I’ll also ask people on Twitter.
… On Mar 1, 2021, at 5:36 PM, Paweł Świątkowski ***@***.***> wrote:
It took some time to understand all the preprocessor magic and subtle changes in Ruby 3 C API, but I created a pull request that compiles against Ruby 3, passes tests and does not break backwards compatibility: #66
I have no idea who to "lobby" in order to get this live.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@simon-dedeo just replace
|
Thank you! It certainly installed; I'm giving it a workout now. |
Just wanted to update this thread in 2023. It seems the above PR got merged: But at least according to this issue, hasn't been released to rubygems yet: |
Bug: SciRuby/rb-gsl#63 Bug: SciRuby/rb-gsl#65 Signed-off-by: Sam James <[email protected]>
I've tried to get this gem working for ruby 3.0; unfortunately, it seems that some major changes to ruby under the hood make this a rather complex problem.
A few things are simple to fix (e.g., moving "EXTERN" to "RUBY_EXTERN" in some declarations). But other issues seem to involve changes to the macros sitting inside the ruby code itself, e.g., "RB_OBJ_WRITE", which has a new definition in ruby 3.0.
After a lot of fiddling, I think there's a solution.
If anyone's reading this and is interested in updating the gem to work with 3.0, let me know.
The text was updated successfully, but these errors were encountered: