Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: Most direct way of loading XS?

by Your Mother (Bishop)
on Feb 18, 2018 at 19:18 UTC ( #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 (Abbot) 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.


Re^3: Most direct way of loading XS?
by syphilis (Bishop) 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.


      Point taken.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2020-08-13 03:03 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (69 votes). Check out past polls.