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

Re: The world of pain that is XS compilation.

by ysth (Canon)
on May 20, 2005 at 02:47 UTC ( #458842=note: print w/replies, xml ) Need Help??

in reply to The world of pain that is XS compilation.
in thread Module::Build users -- please use the "traditional" create_makefile_pl option

In getting CBuilder to work in the perl source tree, I had to compare parts of CBuilder with their MM equivalent, and I have to say there were gems that got left behind (or were added after CBuilder was started?). One in particular that I remember was the limited support for cross-compiling that makemaker has.

AIUI, the xsubpp isn't really improved: the code was just moved from a script to a module and the script now uses the module. From my perspective, the really significant impact of this is that xsubpp tests can now be written (but haven't yet been).

  • Comment on Re: The world of pain that is XS compilation.

Replies are listed 'Best First'.
Re^2: The world of pain that is XS compilation.
by kwilliams (Sexton) on May 29, 2005 at 02:00 UTC

    That's correct, xsubpp wasn't improved at all. I did do some cleanup of code (adding "use strict" to some of it and lexicalizing variables) but that's about it. The main reason I wanted to stick it in a module was so that I could call its code - which after all, just reads in a file and writes another - without calling a subprocess.

    I also agree that there are certainly gems (or necessary kludges, in some cases) from MM's C-compilation code that aren't in CBuilder. I'm depending on people submitting bug reports (and patches for platforms I can't test on) so I can fix them.

    Since CBuilder and ParseXS went into the core, I've gotten lots of good patches and suggestions, which will make their way into the next version.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://458842]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-12-14 11:02 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (389 votes). Check out past polls.