Re: PDD 11 -- extensions

2004-02-23 Thread Simon Glover
On Sat, 21 Feb 2004, Mattia Barbon wrote: > Il Fri, 20 Feb 2004 16:12:40 -0500 (EST) Simon Glover <[EMAIL PROTECTED]> ha scritto: > > > Here's a first draft of PDD 11. It's based on a combination of the > > existing extend.pod and the comments in extend.c, with additional > > text > > by yours

PDD 11 -- extensions

2004-02-20 Thread Simon Glover
are the ones that are largely unaware of the structure and architecture of Parrot. They deal mainly in data as abstract entities, and Parrot itself as a black box that, at best, can make subroutine or method calls. This is sufficient for many extensions which act as black box processing units a

Re: vtable extension for, well, extensions

2003-10-29 Thread Dan Sugalski
On Wed, 29 Oct 2003, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > (void *)get_pointer() > > void set_pointer(void *) > > Good. So we can clean up cheating in Sub PMCs, where we are using > _integer vtables, when actually absolute byte-code addressess are > passed. Ye

Re: vtable extension for, well, extensions

2003-10-29 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > (void *)get_pointer() > void set_pointer(void *) Good. So we can clean up cheating in Sub PMCs, where we are using _integer vtables, when actually absolute byte-code addressess are passed. > Dan leo

vtable extension for, well, extensions

2003-10-29 Thread Dan Sugalski
ting entry (like, say, the get/set int keyed int entries) neither of which is really a good option for extensions. So, once the screaming pumpkin departs, I want to add these two entries to the vtable: (void *)get_pointer() void set_pointer(void *) with their keyed variants. The default acti

Re: Parrot extensions, or PMC versatility

2003-03-14 Thread Dan Sugalski
gle searches by URL. (Though it's possible, IIRC) So, some questions: 1. Are PMCs being designed such that compiled Parrot extensions should be using them for all their internal operations where possible, or is it more likely that an extension writer should be using their own struc

Re: Parrot extensions, or PMC versatility

2003-03-14 Thread Benjamin Goldberg
Darren Duncan wrote: [snip] > I decided that I shouldn't waste my time with the Perl 5 XS system and > go straight to using the corresponding Parrot extension mechanism > instead. Partly this is because the latter should be more mature by > the time I am ready to write the C, and also because it s

Parrot extensions, or PMC versatility

2003-03-14 Thread Darren Duncan
C, and also because it should be a lot better designed and a joy to work with than XS. So, some questions: 1. Are PMCs being designed such that compiled Parrot extensions should be using them for all their internal operations where possible, or is it more likely that an extension writer should

Re: Extensions

2002-03-04 Thread Alex Gough
an do it better. > > >Also, on a tangent, I hope someone is pondering, or planning to > >ponder, the practicallity of some kind of perl5 XS to perl6 interface > >that would enable perl5 extensions to be ported to perl6 with less > >effort than a complete rewrite. It needn&#x

Re: Extensions

2002-03-04 Thread Dan Sugalski
practicallity of some kind of perl5 XS to perl6 interface >that would enable perl5 extensions to be ported to perl6 with less >effort than a complete rewrite. It needn't be clean, elegant, or >fast, but I think there's too much good work on CPAN to ignore. I was hoping to avoid

RE: Extensions

2002-03-04 Thread Brent Dax
27;ll just be happy to see Apoc 5, so I know what I should support when I rip out the guts of the regex engine. ;^) # Also, on a tangent, I hope someone is pondering, or planning to # ponder, the practicallity of some kind of perl5 XS to perl6 interface # that would enable perl5 extensions to be

Re: Extensions

2002-03-04 Thread Tim Bunce
nterface that would enable perl5 extensions to be ported to perl6 with less effort than a complete rewrite. It needn't be clean, elegant, or fast, but I think there's too much good work on CPAN to ignore. Tim.

Re: Extensions

2002-03-02 Thread Nicholas Clark
On Sat, Mar 02, 2002 at 12:24:18PM -0800, Brent Dax wrote: > # It confused me at first. Conceptually it seems that there is > # a sudden jump > # from perl syntax to C syntax, without any visual alert marks. > # Reading it again I few times I realise that the above is > # (almost) C syntax, > # ap

RE: Extensions

2002-03-02 Thread Brent Dax
Nicholas Clark: # On Fri, Mar 01, 2002 at 05:17:28AM -0800, Brent Dax wrote: # > After banging my head against a wall for a few hours with # Perl 5's XS, I # > have an idea for how Parrot can do it better. # > # > Basically, the big problems with XS are: # > -It's ugly as hell # > -It make

Re: Extensions

2002-03-02 Thread Nicholas Clark
On Fri, Mar 01, 2002 at 05:17:28AM -0800, Brent Dax wrote: > After banging my head against a wall for a few hours with Perl 5's XS, I > have an idea for how Parrot can do it better. > > Basically, the big problems with XS are: > -It's ugly as hell > -It makes the extender do tons of e

Extensions

2002-03-01 Thread Brent Dax
this definition: char * TypeMap_Parrot_String_TO_char_PTR(struct Parrot_Interp *interpreter, Parrot_String arg) { return Parrot_string_to_chars(interpreter, arg); } Note that for most extensions you won't even need a typemap. These three and a few others would likely

Binary compatibility of extensions (was Auto-install on -language)

2001-02-09 Thread Branden
ardized somehow? Perl 6 binary level compatibility, for > extensions? In a way that distributing binary modules would be at least > possible? It's already a big trouble to consider the various different > os/cpu combinations, configure options is not feasible at all! Compilers I > c