Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^3: Will the real Internals module please stand up?

by demerphq (Chancellor)
on Nov 16, 2012 at 11:10 UTC ( #1004172=note: print w/replies, xml ) Need Help??

in reply to Re^2: Will the real Internals module please stand up?
in thread Will the real Internals module please stand up?

What do you mean about "bindings are absent"?

Most of this stuff, in particular availability, is not documented directly for a reason. So for instance Tie::Hash::NamedCapture is used to implement named captures. It is loaded automagically by the internals when you do a $+{foo} style lookup. It uses a bunch of the re:: functions, which are exposed via universal because they are then compiled into the core executable and thus do not require an additional library to be loaded. Now I could have implemented the entire thing without using any perl level modules or exposing any subs, but that would have limited the options available to the programmer which I felt was not the Perl way.


  • Comment on Re^3: Will the real Internals module please stand up?

Replies are listed 'Best First'.
Re^4: Will the real Internals module please stand up?
by ikegami (Pope) on Mar 02, 2013 at 22:31 UTC

    I just saw this now for the first time.

    What do you mean about "bindings are absent"?

    Don't know.

    re::regexp_pattern is defined in 5.10.0's universal.c and it's bound to the Perl namespace.

    re::regmust isn't defined in 5.10.0's universal.c, so why was it mentioned?

    Maybe I was looking at the wrong file version?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004172]
[shmem]: well finally.
[stevieb]: nice! I just finished a GPS "take me home" device last week, and did a bunch of software updates to it yesterday. I also created a pseudo chip with an Arduino to simulate an IC, where it responds to register read/writes over the I2C bus...
[stevieb]: ...from an I2C master. It's ugly and there are many changes I'm going to make, but I had not done anything like it before. It's designed for my RPi:: automated test platform; a system that does CI on *all* my RPi modules.
[shmem]: pseudo chip?
[stevieb]: well, what happens is the Arduino 'listens' for requests r/w, and does the appropriate thing when it's interrupted based on the 'register' address sent in. It's ugly as it was my first attempt, but I've got great new ideas I'm just sitting.
[stevieb]: ...down to implement now. Here's the sketch as it currently sits
[shmem]: well I use I2C and SPI and stuff, but creating a pseudo chip looks to me like lot of indirection and memory clutter... not?

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-06-25 22:40 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (572 votes). Check out past polls.