develooper Front page | perl.perl5.porters | Postings from November 2001

Re: [PATCH h2xs] Use of static data in XS modules

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
November 5, 2001 20:44
Subject:
Re: [PATCH h2xs] Use of static data in XS modules
Message ID:
20011106064356.I5716@alpha.hut.fi
On Mon, Nov 05, 2001 at 11:22:59PM -0000, Paul Marquess wrote:
> From: Jarkko Hietaniemi [mailto:jhi@iki.fi]
> 
> > On Tue, Oct 30, 2001 at 04:50:16PM +0000, Tim Bunce wrote:
> > > On Tue, Oct 30, 2001 at 04:13:01PM -0000, Paul Marquess wrote:
> > > >
> > > > Have we reached the stage where we need to seriously consider
> > including
> > > > Devel::PPPort in the core (with a parallel existence on CPAN)?
> > >
> > > I think so.
> >
> > Fine with me, too.  (The name "ppport.h" is also less likely to
> > cause conflicts, me like.)
> 
> How does this sound for a plan?
> 
>   1. Devel::PPPort
> 
>      Port Devel::PPPort into the core. The biggest change needed here is to
> get
>      Devel::PPPort to install itself, and for it to provide an interface to
>      allow h2xs to get a ppport.h file.
> 
>   2. h2xs
> 
>      Get h2xs to add an "#include ppport.h" in the .xs file and use
>      Devel::PPPort to generate the ppport.h file.
> 
>   3. Bells & Whistles
> 
>      h2xs could write a section in Makefile.PL to (optionally) check if
>      Devel::PPPort is installed. If it is installed and it is newer than the
>      version than was used to create the ppport.h file included with the
> module
>      it is building, it could automatically upgrade the ppport.h file.
> 
>      Devel::PPPort could be given the intelligence to check for newer
> versions
>      of itself on CPAN.

The plan sounds okay to me.  The Bells and Whistles section sounds
a little bit ambitious, though.

> I don't mind doing 1 & 2 above, at least, but I'd prefer to have Kenneth's
> approval to modify his module first. Does anyone know if he is still active
> in the Perl world?

Haven't heard/seen anything for a long long long time.  Last I heard
he was working for Palm, but that was also long ... you get the idea.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About