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.
[ Parent
| on HN ]
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-...
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/