Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Calling a C++ subroutine from Perl

by tobyink (Canon)
on Mar 19, 2019 at 01:02 UTC ( #1231413=note: print w/replies, xml ) Need Help??


in reply to Calling a C++ subroutine from Perl

Inline::CPP should be pretty easy to get started with.

Internally, I believe it translates stuff to XS (Inline::C does anyway), so once you have a working solution, you can grab that code and use that as the basis for an XS version.

Replies are listed 'Best First'.
Re^2: Calling a C++ subroutine from Perl
by syphilis (Bishop) on Mar 19, 2019 at 11:44 UTC
    Internally, I believe it translates stuff to XS

    Yep - it writes the XS file, compiles it and then executes the script.

    Cheers,
    Rob
      And caches the compilation so you don't have to recompile on every invocation of the script, as I read the doc. Pretty cool!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1231413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2020-04-09 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (47 votes). Check out past polls.

    Notices?