Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^3: Using vec() from XS

by tsee (Curate)
on Sep 24, 2008 at 07:38 UTC ( #713366=note: print w/replies, xml ) Need Help??

in reply to Re^2: Using vec() from XS
in thread Using vec() from XS

Most likely, you already know that Perl is compiled to a tree of ops. pp_vec is one such op type -- corresponding to the Perl vec() function.

Now, you could create op structures from XS and inject them into the running program. B::Generate does stuff like that.

The one example I'm aware of where this actually works well is List::Util::shuffle. Instead of repeating what's happening there, check for yourself: List::Util XS code.

I tried to do something similar in order to get caller() in XS, but that experiment mostly failed. I would not suggest going down that route.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://713366]
[choroba]: create a ticket if the number of tickets reaches a limit
[choroba]: how deep meta could it go?
[marto]: this sounds like a sub section for Sane Dots
[Corion]: marto: You mean "Sane Dots Dramatic Reading of ITIL" ? ;)
[marto]: Sane Dots, chapter 13: ITIL never work :P

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-01-24 10:24 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (203 votes). Check out past polls.