Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Most direct way of loading XS?

by Your Mother (Archbishop)
on Feb 18, 2018 at 19:18 UTC ( [id://1209454]=note: print w/replies, xml ) Need Help??


in reply to Re: Most direct way of loading XS?
in thread Most direct way of loading XS?

Are you saying that hackers include C/XS code as a technique to keep Perl code platform independent?

Update: I'm going to follow up since no reply has been forthcoming. There are a couple of Anonymous Monks who are legit hackers and my question was for potential clarification if I was missing something I might not understand. No follow up means I'm pretty sure I'm not missing anything and the upvotes the node above is attracting are irritating me.

Including C code with your Perl code is close to the bottom of the list for effective methods of achieving platform independence as opposed to pure Perl which generally achieves it perfectly outside FS issues anyway. This non-answer, ALSO, HERE'S SOMETHING BARELY RELATED, NON-TECHNICAL, AND COINCIDENTALLY WRONG, screams sundialsvc4 to me despite the newfound self-control over formatting and logorrhea. You're going to continue to get the benefit of the doubt when posting without using your account. It absolutely does not make your wrong answers okay or expose bias—just general goodwill here—because you can trick a few visitors into the odd ++.

Replies are listed 'Best First'.
Re^3: Most direct way of loading XS?
by salva (Canon) on Feb 19, 2018 at 08:43 UTC
    I think you are misunderstanding the Anonymous Monk post.

    He doesn't say XS/C code is portable, but that it can be used to hide portability issues providing OS agnostic APIs to be used from Perl code.

    It is how the Perl core works. It deals with every OS quirk and custom, hidden them to the Perl programmer. And XS/C code can be used to do the same.

    Well, at least that is my reading.

      My reading of anon is that Dynaloader shields you from the platform-specific details of how to dynamically link in a module at run time, which is why it would probably be unwise to roll your own.

      Dave.

Re^3: Most direct way of loading XS?
by syphilis (Archbishop) on Feb 19, 2018 at 10:05 UTC
    It absolutely does not make your wrong answers okay or expose bias—just general goodwill here—because you can trick a few visitors into the odd ++

    I don't feel that I was at all "tricked" when I gave AM a ++.

    But I certainly would not have ++'ed your post if I had known you would subsequently update it with such offensive garbage.

    Cheers,
    Rob

      Point taken.

Log In?
Username:
Password:

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

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

    No recent polls found