On Tue, Aug 01, 2000 at 10:30:36PM -0400, Dan Sugalski wrote:
> At 06:23 PM 8/1/00 -0400, John Tobey wrote:
> >Dan Sugalski <[EMAIL PROTECTED]> wrote:
> > > At 09:43 PM 8/1/00 +0000, Nick Ing-Simmons wrote:
> > > >Nor am I sure that the XS API is not one of the things I would not
> > > >have near top of the list for "internals cleanup":
> > > >
> > > >PUSHMARK;
> > > >XPUSHs(sv_2mortal(newSVpv('DeepThought'));
> > > >XPUSHs(sv_2mortal(newSViv(42));
> > > >PUTBACK;
> > > >count = perl_call_method("Consider",G_EVAL);
> > > >SPAGAIN;
> > > >if (count >= 1) {
> > > > answer = SvIV(POPs));
> > > >}
> > > >
> > > >You _want_ to keep that???
> >
> >I nominate Dan to rewrite DBI.xs...
>
> I'll leave that to Tim, since he knows what he's doing with it far more
> than I do.
>
> I fully expect that Tim'll let me know about the things with the current
> implementation that are really busted and let me know in no uncertain terms
> what's wrong with the replacement...
Perl5 XS/GUTS is the way it is largely because it was designed with
performance in mind. I think Larry did a very good job. My only big
worry for perl6 is that, without great care, we'll loose that
performance edge in the name of a 'clean API'.
There may be scope for having two levels of API. One high level clean
simple etc and the other a lower-level more performance oriented API.
The former could be implemented in terms of the latter.
Tim.