Re: abs_i_i but no abs_i

2002-08-03 Thread Ken Fox
Nicholas Clark wrote: > But there do seem already to be arguably duplicate 2 operand versions of > many ops. Hence I was surprised at the lack of consistency. Right. I suspect that as people get more experience with the new Perl 6 compiler the 2 operand ops will go away (or vice versa). At the v

Re: abs_i_i but no abs_i

2002-08-03 Thread Nicholas Clark
On Sat, Aug 03, 2002 at 10:51:41AM -0400, Ken Fox wrote: > Nicholas Clark wrote: > >I can write more a efficient implementation of abs_i ... things will > >go slightly faster > > The law of diminishing returns is broken for a VM. Eventually you > reach a point where adding more ops actually decre

Re: abs_i_i but no abs_i

2002-08-03 Thread Nicholas Clark
On Sat, Aug 03, 2002 at 11:22:16AM +0100, Nicholas Clark wrote: > How come there is abs_i_i to put the absolute value of $2 into $1, but there's > no abs_i to convert $1 to absolute? > > I can write more a efficient implementation of abs_i, because I don't need to > store the value back if it's a

Re: abs_i_i but no abs_i

2002-08-03 Thread Ken Fox
Nicholas Clark wrote: > I can write more a efficient implementation of abs_i ... things will > go slightly faster The law of diminishing returns is broken for a VM. Eventually you reach a point where adding more ops actually decreases total performance. Instead of the change in performance tendin