Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion keyed vtables and mmd
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Sugalski  
View profile  
 More options Apr 28 2004, 11:33 am
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Wed, 28 Apr 2004 11:33:16 -0400
Local: Wed, Apr 28 2004 11:33 am
Subject: keyed vtables and mmd
Okay, we've a long-running discussion between Leo and I about the
keyed  variants for all the binary vtable entries.

On the one hand, there's a hell of a lot of 'em, of potentially
limited utility.

On the other, without them it means creating temporary PMCs if we do
something like:

      foo[1;2] = bar[1;2] + baz[1;2]

and foo, bar, and baz are all packed-integer arrays. (With the keyed
versions we can skip creating a temp PMC for bar[1;2], baz[1;2], and
the resulting temp that gets assigned into foo[1;2])

On the other hand... mmd. MMD is a pain here, since it means we have
multiple tables and... ick. Nasty there.

So, here's a compromise solution.

We toss the keyed variants for everything but get and set. And... we
move *all* the operator functions out of the vtable and into the MMD
system. All of it. Math, logical ops, bit ops... the works. All
that's left are the gets, sets, and meta-information entries. (Type,
class, elements, and suchlike stuff) We rework the current pmc
processor to take the entries that are getting tossed and
automatically add them to the MMD tables on PMC load instead.

Comments?
--
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.