RE: hyper operators - appalling proposal

2002-07-17 Thread Brent Dax
Austin Hastings: # --- Dan Sugalski <[EMAIL PROTECTED]> wrote: # > At 8:30 AM -0400 7/16/02, Karl Glazebrook wrote: # > >I still feel this adds yet another layer of inconsistency and # > >confusion. I can't look at a piece of code and know what it does, # > >without referring up N lines to the to

Re: hyper operators - appalling proposal

2002-07-17 Thread Austin Hastings
--- Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 8:30 AM -0400 7/16/02, Karl Glazebrook wrote: > >I still feel this adds yet another layer of inconsistency and > >confusion. I can't look at a piece of code and know what it does, > >without referring up N lines to the top of the scripts. > > > >

Re: hyper operators - appalling proposal

2002-07-16 Thread Dan Sugalski
At 8:30 AM -0400 7/16/02, Karl Glazebrook wrote: >I still feel this adds yet another layer of inconsistency and >confusion. I can't look at a piece of code and know what it does, >without referring up N lines to the top of the scripts. > >How is the infinite loop problem any different from other

Re: hyper operators - appalling proposal

2002-07-16 Thread Karl Glazebrook
I still feel this adds yet another layer of inconsistency and confusion. I can't look at a piece of code and know what it does, without referring up N lines to the top of the scripts. How is the infinite loop problem any different from other Halting problems? Karl Christian Soeller wrote: >

Re: hyper operators - appalling proposal

2002-07-15 Thread Christian Soeller
Trey Harris wrote: > Yes. This is my fear of hyperoperation being the default for normal > aggregates. Loops--and large, multiply-nested, potentially-infinite > ones--can spring out of code that doesn't look loopy at all. Erm... you > know what I mean. :-) > > Karl, do you have any objection

RE: hyper operators - appalling proposal

2002-07-15 Thread Trey Harris
In a message dated Mon, 15 Jul 2002, Brent Dax writes: > With explicit, you just get the result of Inf ** 2 (which presumably is > still Inf) in $bar. Perhaps neither is what you want, but at least it > doesn't take forever to run. Yes. This is my fear of hyperoperation being the default for no

RE: hyper operators - appalling proposal

2002-07-15 Thread Brent Dax
Karl Glazebrook: # On Monday, July 15, 2002, at 01:45 PM, Sean O'Rourke wrote: # # > On Mon, 15 Jul 2002, Luke Palmer wrote: # > # >> On Mon, 15 Jul 2002, Karl Glazebrook wrote: # >> # >>> @solution = (^-@b + sqrt(@b^**2 ^+ 4^*@a^*@c) ) ^/ (2^*@a); # >> # >> That would not be very pretty, indeed

Re: hyper operators - appalling proposal

2002-07-15 Thread Dan Sugalski
At 2:09 PM -0400 7/15/02, Karl Glazebrook wrote: > >>On Monday, July 15, 2002, at 01:52 PM, Aaron Sherman wrote: >>Sure, that's always an option. I think Perl has a lot going for it other >>than the way vectorization happens, and with the ability to define your >>own array behavior, you can prett

Re: hyper operators - appalling proposal

2002-07-15 Thread Karl Glazebrook
[several replies flattened into one] On Monday, July 15, 2002, at 01:45 PM, Sean O'Rourke wrote: > On Mon, 15 Jul 2002, Luke Palmer wrote: > >> On Mon, 15 Jul 2002, Karl Glazebrook wrote: >> >>> @solution = (^-@b + sqrt(@b^**2 ^+ 4^*@a^*@c) ) ^/ (2^*@a); >> >> That would not be very pretty, ind

Re: hyper operators - appalling proposal

2002-07-15 Thread Aaron Sherman
On Mon, 2002-07-15 at 11:29, Karl Glazebrook wrote: > complex formulae. Imagine: > > @solution = (^-@b + sqrt(@b^**2 ^+ 4^*@a^*@c) ) ^/ (2^*@a); > > (or would it be ^sqrt() ?) - This looks like sendmail :-) I would imagine that non-binary operators would simply have a hyper-form (which could

Re: hyper operators - appalling proposal

2002-07-15 Thread Sean O'Rourke
On Mon, 15 Jul 2002, Luke Palmer wrote: > On Mon, 15 Jul 2002, Karl Glazebrook wrote: > > > @solution = (^-@b + sqrt(@b^**2 ^+ 4^*@a^*@c) ) ^/ (2^*@a); > > That would not be very pretty, indeed. It would also not be very > efficient. (BTW, its b**2 - 4ac, not + :)A more efficient, pretty,

Re: hyper operators - appalling proposal

2002-07-15 Thread Erik Steven Harrison
>Karl Glazebrook <[EMAIL PROTECTED]> disgusted: > > @solution = (^-@b + sqrt(@b^**2 ^+ 4^*@a^*@c) ) ^/ (2^*@a); >[Stuff] >If I was forced to write vector code like this I *WILL* give up on perl, >and resort to Numerical >Python or IDL instead. > You can always use the map and foreach lik

Re: hyper operators - appalling proposal

2002-07-15 Thread Luke Palmer
On Mon, 15 Jul 2002, Karl Glazebrook wrote: > In Apocalypse 2 Larry Wall wrote: > > > RFC 082: Arrays: Apply operators element-wise in a list context > > > > APL, here we come... :-) > > > > This is by far the most difficult of these RFCs to decide, so I'm going > > to be doing a lot of thinkin

hyper operators - appalling proposal

2002-07-15 Thread Karl Glazebrook
In Apocalypse 2 Larry Wall wrote: > RFC 082: Arrays: Apply operators element-wise in a list context > > APL, here we come... :-) > > This is by far the most difficult of these RFCs to decide, so I'm going > to be doing a lot of thinking out loud here. This is research--or at > least, a search.