Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: module with conditional xs code

by stevieb (Canon)
on Mar 18, 2020 at 17:32 UTC ( [id://11114439]=note: print w/replies, xml ) Need Help??


in reply to module with conditional xs code

Do the Perl and XS code overlap, or does the XS provide extra functionality that the Perl distribution doesn't?

Replies are listed 'Best First'.
Re^2: module with conditional xs code
by navalned (Beadle) on Mar 18, 2020 at 19:10 UTC

    They don't. But reading your reply gave me an idea. Originally I didn't think it possible to do the openbsd side with just perl, but it may be worth a try. If nothing else, but to make everything simpler. I could probably go the other way also and just use some #ifdef's in the xs code.

      Ask yourself whether the efficiency benefits of running C/XS code are really required or not. Then decide if there's any functionality written in C/XS that can't run in Pure Perl without compromising the quality of the distribution.

      It's always easier to deploy a distribution cross-platform if there's no XS for sure, but there are those times where the XS is definitely required.

      If it's not required, and the benefits won't even be noticed, I leave it out.

Log In?
Username:
Password:

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

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

    No recent polls found