On Tue, 2004-04-20 at 11:53, Dan Sugalski wrote:

> Y'know... let's just go all the way with this, since we're going to have to.
> 
> We'll add a hyper version of all the vtable entries.

Another of those darned "I don't get it" posts, but I'll keep this one
short.

Why does Parrot need this? What's so special about hyper operations that
makes Parrot want to take them on?

The way I have read Perl 6's Apocalypses hyper-operations are
essentially (sometimes lazy) operations on arrays and/or lists of
values. So:

        @a = @b >>+<< @c

Is just a rather simple for loop that traverses the two lists, adding
them together and constructing a new list. You don't need a vtable entry
for that.

You *do* need to be able to override infix:>>+<<, but that's just a
perlop. Does it need to be Parrot? Does every single infix:... thing in
Perl 6 need to have support in Parrot? As long as Perl 6 can iterate
over values that it gets from Parrot (e.g. PMCs that come from Perl 6,
Perl 5, Ruby, whatever), then all hyperops should be easily implemented
in Perl 6's compiler, no?

Confused.

-- 
Aaron Sherman <[EMAIL PROTECTED]>
Senior Systems Engineer and Toolsmith
"It's the sound of a satellite saying, 'get me down!'" -Shriekback


Reply via email to