Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Calling a C++ subroutine from Perl

by tobyink (Canon)
on Mar 19, 2019 at 01:02 UTC ( [id://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 (Archbishop) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1231413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-28 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found