Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Yet Another XS Tutorial

by revendar (Novice)
on Nov 18, 2013 at 19:17 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1063187]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found