| Store | Cart

Re: OP_SIGNATURE

From: Father Chrysostomos <spr...@cpan.org>
3 Mar 2015 16:31:52 -0000
Dave Mitchell wrote:
> On Wed, Feb 25, 2015 at 09:00:08PM +0000, Zefram wrote:> > It's a messy design.  The op types are, for the most part, reasonable> > programming primitives, with simple specifications.  The signature op> > type is entirely contrary to that.  Sure, we make some exceptions for> > performance, such as padrange, but we have to strike a balance between> > performance and API cleanliness.  padrange is a decent tradeoff: a good> > bit of performance win for a small bit of API mess.  The signature op> > is way too far at the vomit-over-the-API end of the spectrum.> > This is a subjective matter on which we'll have to disagree.> NB - do you also object to my recent introduction of OP_MULTIDEREF?

I think Zefram has a point.  If you were to create signature ops in
the same way you create multideref ops, it would be a more general-
purpose optimisation that would automatically speed up any similar
code occurring in existing subs.  I would be all for implementing
it that way.

Recent Messages in this Thread
Father Chrysostomos Mar 03, 2015 04:31 pm
Dave Mitchell Mar 03, 2015 09:30 pm
Dave Mitchell Mar 03, 2015 11:57 am
Vincent Pit (VPIT) Mar 03, 2015 01:16 pm
Dave Mitchell Mar 03, 2015 09:30 pm
Vincent Pit (VPIT) Mar 03, 2015 10:02 pm
Zefram Mar 04, 2015 08:16 pm
Dave Mitchell Mar 05, 2015 05:22 pm
Zefram Mar 05, 2015 08:29 pm
Messages in this thread