Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: $perl_extension ? require SWIG : require XS;

by jettero (Monsignor)
on Jan 06, 2007 at 13:33 UTC ( [id://593299]=note: print w/replies, xml ) Need Help??


in reply to $perl_extension ? require SWIG : require XS;

In my opinion, swig is for people who just want to get something working, have little interest in distribution, and don't have any interest in learning perl XS. If you went through the modules on CPAN looking at the ones that import C into perl, you'd find that nearly all of them use XS.

I wouldn't call XS a wrapper either, it's actually perl's interface to call C functions natively. I could be semantically mistaken, but I think that's pretty close. XS can be tricky to learn, but I think it's worth it. I have loved every XS project I've completed so far.

-Paul

  • Comment on Re: $perl_extension ? require SWIG : require XS;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-06-21 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.