Re: What're native (i.e. high-machine-performance) hybrid development options with Raku?

2021-09-29 Thread YueCompl via perl6-users
For the record, this is because our use case is some different from simply wrapping a mature C/C++ lib/component with less frequent API changes. We keep actively developing new functionalities, as high-performance core code, wrapped to have varying scripting interfaces. Design model exploration

Re: What're native (i.e. high-machine-performance) hybrid development options with Raku?

2021-09-29 Thread YueCompl via perl6-users
Thanks! But as I said, C/C++ is a deal breaker for us. I think Raku is garbage collected itself, it'll be hell if the native code we write will either have to manage memory manually, or interface with Raku's GC routinely. Back there, Pybind11 would manage C++ objects with smart pointers

Re: What're native (i.e. high-machine-performance) hybrid development options with Raku?

2021-09-29 Thread Fernando Santagata
I can add that the NativeCall interface works exceptionally well, even allowing one to pass a Raku sub, closure, or anonymous block as a callback into a C function. For example: https://raku.land/cpan:FRITH/Spreadsheet::Libxlsxio On Wed, Sep 29, 2021 at 11:14 AM Simon Proctor wrote: > I'm

Re: What're native (i.e. high-machine-performance) hybrid development options with Raku?

2021-09-29 Thread Simon Proctor
I'm sure there are people who will be able to give some more information than me but I will say you can do worse than reading the documentation on NativeCall. https://docs.raku.org/language/nativecall I've played about with it a bit and it really is quite simple to get started with. Generally

What're native (i.e. high-machine-performance) hybrid development options with Raku?

2021-09-29 Thread YueCompl via perl6-users
Also asked at https://www.reddit.com/r/rakulang/comments/pxqaxi/whats_native_ie_highmachineperformance_hybrid Greetings! u/raiph is really a great evangelist, months ago, he swept away my