Re: Perl 6 documentation project mailing list

2002-11-08 Thread Piers Cawley
Robert Spier <[EMAIL PROTECTED]> writes: >>Ah... that would explain why I haven't seen it then. Looks like >>someone broke perl6-all. > > No, it was just "not configured". > > Future messages to perl6-documentation should end up on perl6-all. Good oh. -- Piers "It is a truth universally ac

Re: Perl 6 documentation project mailing list

2002-11-08 Thread Robert Spier
>Ah... that would explain why I haven't seen it then. Looks like >someone broke perl6-all. No, it was just "not configured". Future messages to perl6-documentation should end up on perl6-all. -R

Re: Superpositions and laziness

2002-11-08 Thread Michael Lazzaro
On Friday, November 8, 2002, at 07:03 AM, Adam D. Lopresto wrote: I still prefer "cached", which sounds less lingo-ish than "memoized" but reads better than "same" ("Same as what?"). Insert obligatory reference to Eiffel here, which IIR uses the word "once": sub square ( Num $n ) is same

Re: Perl 6 documentation project mailing list

2002-11-08 Thread Piers Cawley
"Markus Laire" <[EMAIL PROTECTED]> writes: > On 8 Nov 2002 at 9:12, Michael Lazzaro wrote: > >> >> On Thursday, November 7, 2002, at 10:45 PM, Piers Cawley wrote: >> > Those of us with subs to perl6-all will get this anyway, right? >> >> I posted an initial message about five minutes ago, so if

Re: Superpositions and laziness

2002-11-08 Thread Piers Cawley
Paul Johnson <[EMAIL PROTECTED]> writes: > On Fri, Nov 08, 2002 at 12:12:53PM -0700, Luke Palmer wrote: > >> What's wrong with C? >> >> C ain't bad either, but it won't appeal to >> non-mathematicians---even certain kinds of mathematicians. >> Mathematica thinks a "pure" function is what we think

Re: Superpositions and laziness

2002-11-08 Thread Adam D. Lopresto
I still prefer "cached", which sounds less lingo-ish than "memoized" but reads better than "same" ("Same as what?"). > Billy Naylor asked: > > > Would it be useful to apply memoization in a similar fashion... > > > > sub square ( Num $n ) is memo { > > return $n ** $n; > > } > > Yes. La

Re: Superpositions and laziness

2002-11-08 Thread Nicholas Clark
On Fri, Nov 08, 2002 at 11:41:38AM -0800, Brent Dax wrote: > Luke Palmer: > # What's wrong with C? > # > # C ain't bad either, but it won't appeal to > # non-mathematicians---even certain kinds of mathematicians. > # Mathematica thinks a "pure" function is what we think of as > # an "anonymous"

Re: Superpositions and laziness

2002-11-08 Thread Buddha Buck
Jonathan Scott Duff wrote: On Fri, Nov 08, 2002 at 05:30:00PM +0100, Paul Johnson wrote: On Fri, Nov 08, 2002 at 03:04:16PM +, Nicholas Clark wrote: On Fri, Nov 08, 2002 at 08:22:17PM +1100, Damian Conway wrote: The name of the property is still under debate. Larry favours: sub square

Re: Superpositions and laziness

2002-11-08 Thread Jonathan Scott Duff
On Fri, Nov 08, 2002 at 05:30:00PM +0100, Paul Johnson wrote: > On Fri, Nov 08, 2002 at 03:04:16PM +, Nicholas Clark wrote: > > On Fri, Nov 08, 2002 at 08:22:17PM +1100, Damian Conway wrote: > > > The name of the property is still under debate. Larry favours: > > > > > > sub square ( Num $n

Re: Superpositions and laziness

2002-11-08 Thread Paul Johnson
On Fri, Nov 08, 2002 at 12:12:53PM -0700, Luke Palmer wrote: > What's wrong with C? > > C ain't bad either, but it won't appeal to > non-mathematicians---even certain kinds of mathematicians. > Mathematica thinks a "pure" function is what we think of as an > "anonymous" sub. So I like C. Part o

RE: Superpositions and laziness

2002-11-08 Thread Brent Dax
Luke Palmer: # What's wrong with C? # # C ain't bad either, but it won't appeal to # non-mathematicians---even certain kinds of mathematicians. # Mathematica thinks a "pure" function is what we think of as # an "anonymous" sub. So I like C. How about C, in an analogy to physics? steady state

Re: Superpositions and laziness

2002-11-08 Thread Luke Palmer
> Date: Fri, 8 Nov 2002 15:04:16 + > From: Nicholas Clark <[EMAIL PROTECTED]> > > And to people in the perl5 know, Memoize is the module that implements this, > hence why people who know of how and what Memoize can do favour that name. > Except that it's not necessarily obvious to everyone else

Re: Perl 6 documentation project mailing list

2002-11-08 Thread Markus Laire
On 8 Nov 2002 at 9:12, Michael Lazzaro wrote: > > On Thursday, November 7, 2002, at 10:45 PM, Piers Cawley wrote: > > Those of us with subs to perl6-all will get this anyway, right? > > I posted an initial message about five minutes ago, so if you received > it, then yes. :-) There are few m

Re: Perl 6 documentation project mailing list

2002-11-08 Thread Michael Lazzaro
On Thursday, November 7, 2002, at 10:45 PM, Piers Cawley wrote: Those of us with subs to perl6-all will get this anyway, right? I posted an initial message about five minutes ago, so if you received it, then yes. :-) MikeL

Re: Superpositions and laziness

2002-11-08 Thread Paul Johnson
On Fri, Nov 08, 2002 at 03:04:16PM +, Nicholas Clark wrote: > On Fri, Nov 08, 2002 at 08:22:17PM +1100, Damian Conway wrote: > > The name of the property is still under debate. Larry favours: > > > > sub square ( Num $n ) is same {...} > > > > whereas others feel that: > > > > sub sq

Re: Superpositions and laziness

2002-11-08 Thread Nicholas Clark
On Fri, Nov 08, 2002 at 08:22:17PM +1100, Damian Conway wrote: > Billy Naylor asked: > > > Would it be useful to apply memoization in a similar fashion... > > > > sub square ( Num $n ) is memo { > > return $n ** $n; > > } > > Yes. Larry indicated this in A2 > (see http://search.cpan.org/

Re: Primitive Vs Object types

2002-11-08 Thread Leopold Toetsch
Larry Wall wrote: ... I can see ways of binding properties to a location without growing the location itself, but I think stuffing a junction of ints into a single location is somewhat problematical. We are still talking about native types - these with lowercase names in the docs? Why should

Re: Superpositions and laziness

2002-11-08 Thread Damian Conway
Luke Palmer wrote: sub a_pure_func(Num $n) returns Num { class is Num { method FETCH { $n * $n } }.new } Yes? No? Not quite. > sub a_pure_func(Num $n) returns Num { > class is Num { > has Num $cache; > method FETCH { $cache //

Re: Superpositions and laziness

2002-11-08 Thread Damian Conway
Billy Naylor asked: Would it be useful to apply memoization in a similar fashion... sub square ( Num $n ) is memo { return $n ** $n; } Yes. Larry indicated this in A2 (see http://search.cpan.org/perl6/apo/A02.pod#Properties). The name of the property is still under debate. Larry favours:

Re: Superpositions and laziness

2002-11-08 Thread Billy Naylor
Damian Conway wrote: > we could make it lazy thus: > > sub a_pure_func(Num $n) is lazy returns Num { > return $n ** $n > } > > which would cause any invocation of C to cache > its arguments (probably in a closure) and return a "proxy" > Num that carries out the computation on