| Store | Cart

Re: OP_SIGNATURE

From: Vincent Pit (VPIT) <p...@profvince.com>
Tue, 03 Mar 2015 10:16:19 -0300
>> OP_SIGNATURE *is* aimed at the "semantic activity of extracting> arguments", and is not tied to one particular syntax. Part of the proof of> that is that it can be used to implement my(...) = @_ syntax in addition> to handling the current signature syntax. It can be used anywhere> where the contents of @_ need to be assigned to a list of my() variables> (modulo the optimisation which requires fresh lexicals) with optional arg> count error checking and default value assignment.

By the way, do you have an idea about why do you get a performance gain 
with OP_SIGNATURE as compared to the previous padrange optimization 
which, if I remember correctly, can already handle "my (...) = @_" in 
one op? (disclaimer: I'm neither for or against the proposal. I'm just 
curious about what could cause such a dramatic improvement when padrange 
seems at first glance conceptually much simpler).


Vincent

Recent Messages in this Thread
Dave Mitchell Feb 22, 2015 08:49 pm
Father Chrysostomos Feb 22, 2015 09:15 pm
Dave Mitchell Feb 22, 2015 10:03 pm
Steffen Mueller Feb 22, 2015 09:24 pm
Dave Mitchell Feb 22, 2015 10:00 pm
Dave Mitchell Feb 23, 2015 09:04 am
Steve Hay Feb 23, 2015 09:27 am
Steve Hay Feb 23, 2015 09:44 am
Dave Mitchell Feb 23, 2015 11:14 am
H.Merijn Brand Feb 23, 2015 09:47 am
Zefram Feb 24, 2015 04:05 pm
Dave Mitchell Feb 25, 2015 06:23 pm
Zefram Feb 25, 2015 09:00 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
David Golden Mar 04, 2015 02:57 am
demerphq Mar 04, 2015 07:32 am
Paul \LeoNerd\ Evans Mar 04, 2015 01:35 pm
demerphq Mar 04, 2015 02:00 pm
Paul \LeoNerd\ Evans Mar 04, 2015 02:15 pm
Zefram Mar 04, 2015 08:36 pm
Dave Mitchell Mar 04, 2015 02:34 pm
Dave Mitchell Mar 05, 2015 12:59 pm
Zefram Mar 05, 2015 03:23 pm
demerphq Mar 05, 2015 04:08 pm
H.Merijn Brand Mar 05, 2015 04:15 pm
Karl Williamson Mar 05, 2015 04:54 pm
Lukas Mai Mar 05, 2015 06:34 pm
Paul \LeoNerd\ Evans Mar 05, 2015 06:48 pm
Paul \LeoNerd\ Evans Mar 04, 2015 02:51 pm
Dave Mitchell Mar 04, 2015 04:00 pm
Aristotle Pagaltzis Mar 05, 2015 05:20 pm
Paul \LeoNerd\ Evans Mar 05, 2015 06:22 pm
Paul \LeoNerd\ Evans Mar 05, 2015 06:34 pm
Jan Dubois Mar 05, 2015 06:51 pm
Paul \LeoNerd\ Evans Mar 05, 2015 06:57 pm
Jan Dubois Mar 05, 2015 08:10 pm
H.Merijn Brand Mar 05, 2015 08:21 pm
David Golden Mar 05, 2015 10:49 pm
Jan Dubois Mar 04, 2015 08:12 pm
James E Keenan Mar 05, 2015 02:35 am
Karl Williamson Mar 05, 2015 04:48 am
Steffen Mueller Mar 05, 2015 07:48 am
Zefram Mar 05, 2015 09:35 am
Dave Mitchell Mar 05, 2015 12:36 pm
Tony Cook Mar 05, 2015 11:41 pm
Ricardo Signes Mar 05, 2015 01:58 pm
Aaron Crane Mar 06, 2015 10:43 pm
Zefram Mar 07, 2015 12:15 am
Paul \LeoNerd\ Evans Mar 07, 2015 12:29 pm
Matthew Horsfall (alh) Mar 07, 2015 03:01 pm
Zefram Mar 07, 2015 03:23 pm
Craig A. Berry Mar 08, 2015 01:47 pm
David Golden Mar 09, 2015 04:33 pm
Dave Mitchell Mar 10, 2015 06:53 pm
Paul \LeoNerd\ Evans Mar 10, 2015 07:38 pm
Steffen Mueller Mar 10, 2015 07:56 pm
Paul \LeoNerd\ Evans Mar 10, 2015 09:17 pm
Messages in this thread