Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Yet Another XS Tutorial

by revendar (Novice)
on Nov 18, 2013 at 19:17 UTC ( #1063187=note: print w/replies, xml ) Need Help??


in reply to Re: Yet Another XS Tutorial
in thread Yet Another XS Tutorial

Hello hardburn, I read your tutorial. I have a doubt, if I have to learn perlgut to glue perl and c?. Can't I write a C program and write a simple xs file with just function and return datatypes and compile and make a package?Because I can write some decent C program and don't want to spend time on perlguts.

Replies are listed 'Best First'.
Re^3: Yet Another XS Tutorial
by hardburn (Abbot) on Nov 18, 2013 at 19:59 UTC

    Not my tutorial, but . . .

    What perlguts goes over is the internal C structures that represent scalars, arrays, and hashes in Perl. The xs code can do some of this for you, but as soon as things get the slightest bit complicated, you'll almost certainly need to know how to interface with SVs and such.

    Don't worry, though. If you know C already, adding this on isn't that hard, and it's all pretty well documented.


    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2019-04-18 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (105 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!