develooper Front page | perl.perl6.internals | Postings from June 2002

Re: Possibility of XS support

Thread Previous | Thread Next
From:
Dave Goehrig
Date:
June 25, 2002 08:04
Subject:
Re: Possibility of XS support
Message ID:
20020625095824.A31779@sdlperl.org
On Tue, Jun 25, 2002 at 09:42:50AM -0500, Dan Sugalski wrote:
> That'd be cool. Be aware that Parrot, at the moment, has *no* 
> extension API at the moment. 

Well the bigger problem for the XS compat layer will be the utter
lack of perl5 STASHes and GVs.  The namespace games are just going
to have to be faked for the moment.  

For the actual call interface, it should be possible to fake the 
perl5 arg stack with Parrot data structures.  And that's what I'm
going to focus on primarily.

> (None of the functions, save those  explicitly exported 
> in the embedding code, will be visible externally)

Well we can always dream :)

Seriously though, both python and ruby have excellent extension
mechanisms, and allow you to see a lot of the internals.
The thing is one can write an extension to Python with only knowing
a handfull of functions, and so the urge to build such monsterous
things is less strong.

-- 
	David J. Goehrig 		dave@cthulhu-burger.org			

All reports, excluding those of historical fact, may be considered speculative.
	- a faceless Compaq disclaimer

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