Re: General Feelings on Apoc 3

2001-10-04 Thread Michael G Schwern
On Thu, Oct 04, 2001 at 08:29:10PM -0500, David Nicol wrote: > > Binary // > > > > The analogy to || is probably a bit too clever. My first reaction > > was it's some sort of weird division operator. But it's servicable. > > It echoes the switch from | to / within the IETF RFC syntax declarati

Re: General Feelings on Apoc 3

2001-10-04 Thread David Nicol
Michael G Schwern wrote: > Binary ; > > This worries me. Giving ; two meanings makes basic language parsing > harder, which would be fine if there was a big payoff, but there's > not. Just making shorthand for [[1,2,3],[4,5,6]] doesn't seem worth > it. What am I missing here? What you migh

huffman encoding and bit operators

2001-10-04 Thread esp5
Picked up from slashdot: > I really dislike having a concatenation operator that's a valid identifier > character. There's just no reason for it. > And I don't completely buy the excuse that we're running out of punctuation > characters. If you're going to jumble some of them up and talk about

Re: General Feelings on Apoc 3

2001-10-04 Thread Damian Conway
> Or even > > for my $x (1..98) { > for my $y (1..(99-$x)) { > for my $z (1..(100-$x-$y)) { > print "$x, $y, $z\n" if $x ** 2 = $y ** 2 + $z ** 2; > } > } > } Sure. Depending on whether you want combinations or permutations. Damian

Re: General Feelings on Apoc 3

2001-10-04 Thread Randal L. Schwartz
> "Damian" == Damian Conway <[EMAIL PROTECTED]> writes: Damian> Personally, I think: Damian> foreach my $x (1..99) { Damian> foreach my $y (1..99) { Damian> foreach my $z (1..99) { Damian> print "$x, $y, $z\n" if $x**2 == $y**2 + $z**2; Damian>

Re: A3: hyper operators with operand of different size

2001-10-04 Thread Dan Sugalski
At 09:52 PM 10/4/2001 +, Stephane Payrard wrote: >Really hyper-operator is too long :) >How do you say "mot valise" in English to denote this conflation of words, >I think Lewis Caroll had a word for that. I'm pretty sure you're looking for "Portmanteau"...

Re: General Feelings on Apoc 3

2001-10-04 Thread Damian Conway
> >> Backtracking: > >> > >> Ok, I don't get it at all. Damian, clarification? > > > > Nothing to clarify. Larry punted (to a later Apocalypse). > > > > Okay. That's a cop-out. He's basically saying that you can write > > C and C yourself as: > >

Re: A3: hyper operators with operand of different size

2001-10-04 Thread David M. Lloyd
On Thu, 4 Oct 2001, Stephane Payrard wrote: > Hyper operators with operands of different size are partly covered > in A3: > > > Hyper operators will also intuit where a dimension is missing from one > of its arguments, and replicate a scalar value to a list value in that > dimension. That

Re: General Feelings on Apoc 3

2001-10-04 Thread David M. Lloyd
On Thu, 4 Oct 2001, Michael G Schwern wrote: > > Backtracking is at the heart of Logic Programming (or Declarative > > Programming, if you like). This is one of the 3 main programming paradigms > > (along with procedural and functional). The most popular Declarative > > language is Prolog. It is

A3: hyper operators with operand of different size

2001-10-04 Thread Stephane Payrard
Hyper operators with operands of different size are partly covered in A3: Hyper operators will also intuit where a dimension is missing from one of its arguments, and replicate a scalar value to a list value in that dimension. That means you can say: @a ^+ 1 The former example a pa

Re: A3, the ';' operator, and hyper-operators

2001-10-04 Thread Damian Conway
> At 02:18 PM 10/4/2001 +1000, Damian Conway wrote: > >> ** Miscellaneous > >> > >> Why 'operator:+' instead of 'operator::+'? (Other than the > >> potential verbosity required to declare operators within a > >> particular package.) I would think it more int

Re: General Feelings on Apoc 3

2001-10-04 Thread Michael G Schwern
On Thu, Oct 04, 2001 at 06:35:51PM +1000, Jeremy Howard wrote: > > I've been playing with Ruby, which has a similar feature. @foo is an > > object instance variable. Inside a class definition, foo() is a > > object method call on the current object. Outside it's a class method > > call on the c

Re: General Feelings on Apoc 3

2001-10-04 Thread Michael G Schwern
On Thu, Oct 04, 2001 at 05:59:53PM +1000, Damian Conway wrote: >> Hyperoperators: >> >> I sort of understand it, but don't really grok it. I can sort of >> thing of ways it might eliminate the need for a few maps and >> foreaches. Damian, might I request some clarification i

Apocalypse 3 was great!

2001-10-04 Thread Sam Tregar
On Thu, 4 Oct 2001, Damian Conway wrote: > A false economy. We should encourage Larry as often as we can. > After all, is it any wonder that it's so long between Apocalypses when > every time he releases one, he gets nothing but negative feedback? Hm, that never occured to me. In that case, let

Re: A3, the ';' operator, and hyper-operators

2001-10-04 Thread Mark J. Reed
On Thu, Oct 04, 2001 at 11:17:38AM -0400, John Siracusa wrote: > Hmmm...does anyone else remember when the suggestion that '.' continue to be > used as the concat operator in Perl 6 was shouted down because it would > require space on either side of it? It seems to me that we've come full > circl

Re: A3, the ';' operator, and hyper-operators

2001-10-04 Thread John Siracusa
AP3 says: > So, instead of: > >$a . $b . $c > > you'll say: > >$a _ $b _ $c > > The only downside to that is the space between a variable name and > the operator is required. This is to be construed as a feature. On 10/4/01 12:18 AM, Damian Conway wrote: >> sub _mysub {} >> $a = _mysub; >

Re: A3, the ';' operator, and hyper-operators

2001-10-04 Thread Dan Sugalski
At 02:18 PM 10/4/2001 +1000, Damian Conway wrote: >> ** Miscellaneous >> >> Why 'operator:+' instead of 'operator::+'? (Other than the >> potential verbosity required to declare operators within a >> particular package.) I would think it more intuitive to think of >> 'opera

Re: A3, the ';' operator, and hyper-operators

2001-10-04 Thread Graham Barr
On Wed, Oct 03, 2001 at 11:26:17PM -0500, Jonathan Scott Duff wrote: > On Thu, Oct 04, 2001 at 01:24:13PM +1000, Damian Conway wrote: > > >From E3: > > > > The doubling also helps it stand out better in code, in part > > because it forces you to put space around the C<::> so that

RE: Custom iterators

2001-10-04 Thread Richard_Cox
Bart Lateur [mailto:[EMAIL PROTECTED]] on 3 October 2001 12:05 wrote: > But I really really doubt if there's any computer language in > the world C (C99 anyway[1]), C++[2], SQL99[3] to name but three [1] _Pragma, _Complex,... [2] bit_and, wchar_t, ... [3] CURRENT_TIMESTAMP Richard Cox Senior S

Re: General Feelings on Apoc 3

2001-10-04 Thread Jeremy Howard
Michael G Schwern wrote: > Binary and unary dot: > > This makes me *very* happy. This is probably the best thing I've > heard all day. > Seconded. > I've been playing with Ruby, which has a similar feature. @foo is an > object instance variable. Inside a class definition, foo() is a > object m

Re: General Feelings on Apoc 3

2001-10-04 Thread Damian Conway
> Hyperoperators: > > I sort of understand it, but don't really grok it. I can sort of > thing of ways it might eliminate the need for a few maps and > foreaches. Damian, might I request some clarification in Exogenesis? Well, I'll probably clarify them in Exegesis instead. "E

Re: sloppy midrash 3

2001-10-04 Thread Damian Conway
> Part of quitting smoking is that my hubris has gone back up. > Here are critical first-impression notes on Apo3. Praise has > been eliminated to save space. A false economy. We should encourage Larry as often as we can. After all, is it any wonder that it's so long between Apocalypse