News for hackers. Stuff that matters.
Re:Pattern Matching in Ruby 2.7 (2019) by roryrjb on Thursday January 09, 2020 @04:23AM (#21999699)
This is a big use case for me. I really want to use Perl but I favour Python because the CPython API vs XS, it's a no brainer. I haven't really looked into the Ruby C API but if it's sane I would use it as well.
Re:Pattern Matching in Ruby 2.7 (2019) by lizmat on Thursday January 09, 2020 @06:50AM (#22000408)
Perhaps Raku is an alternative for you with its Perl roots and its NativeCall support: https://docs.raku.org/language/nativecall Also see this recent blog post for interfacing with C++ and Fortran from Raku: https://andrewshitov.com/2020/01/08/calling-cpp-and-fortran-...
Re:Pattern Matching in Ruby 2.7 (2019) by roryrjb on Thursday January 09, 2020 @09:16AM (#22001327)
Nice thank you. The last time I looked at Raku a few years ago when it was still called Perl 6 I hadn't considered native bindings. Will take a look.
Re:Pattern Matching in Ruby 2.7 (2019) by AdieuToLogic on Thursday January 09, 2020 @07:17AM (#22000556)
> I really want to use Perl but I favour Python because the CPython API vs XS, it's a no brainer.

As I just mentioned in this thread, there is a project called SWIG[0] which might be something you'd want to check out.

0 - http://swig.org/

Re:Pattern Matching in Ruby 2.7 (2019) by roryrjb on Thursday January 09, 2020 @09:13AM (#22001302)
Thank you. I've heard of it and read about it a few times but haven't seriously considered it, but I will.