4 ms·
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
by roryrjb 7y ago
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.
- AdieuToLogic 7y ago> 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/ http://swig.org/
- roryrjb 7y agoThank you. I've heard of it and read about it a few times but haven't seriously considered it, but I will.
- lizmat 7y agoPerhaps Raku is an alternative for you with its Perl roots and its NativeCall support: https://docs.raku.org/language/nativecall 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-functions-from-raku-using-the-nativecall-interface/ https://andrewshitov.com/2020/01/08/calling-cpp-and-fortran-...
- roryrjb 7y agoNice 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.