Tim Bunce <[EMAIL PROTECTED]> writes:
>
>Perl5 XS/GUTS is the way it is largely because it was designed with
>performance in mind.
Hmm, maybe in some areas but not others:
On the one hand the whole PUTBACK/SPAGAIN mess is by overly clever
attempt to optimize access to "global" variables which compiler
has a better chance of getting right by itself.
While on the other hand XS is forced to stuff everything on the stack.
My main complaint is that XS code is too unlike pp_xxx() and you
cannot easily call into pp_xxx().
>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.
Exactly.
--
Nick Ing-Simmons