Re: run-once code

2004-01-14 Thread Melvin Smith
At 10:16 PM 1/13/2004 -0700, Luke Palmer wrote: David Storrs writes: Given this code: if ( some_expensive_lookup_function() = $MAX_RECORDS ) { mark_that_we_have_reached_max_records(); return; } After I enter that block once, I never want to evaluate the condition

Re: run-once code

2004-01-14 Thread Melvin Smith
At 09:31 AM 1/14/2004 -0800, David Storrs wrote: On Wed, Jan 14, 2004 at 10:59:52AM -0500, Melvin Smith wrote: I think Perl6 will allow a hint like so: my int $max_reached; The important thing is that $max_reached is used simply as a conditional, and you don't pass it to a routine

Re: Archive tarball?

2004-01-08 Thread Melvin Smith
At 09:25 AM 1/8/2004 -0600, Jonathan Scott Duff wrote: On Thu, Jan 08, 2004 at 07:48:46AM -0700, Luke Palmer wrote: If worse comes to worst, you can always ask me. I manage to keep the largest amount of the language in my head with the most time available to answer questions :-) Oh no, now

Re: This week's summary

2004-01-05 Thread Melvin Smith
At 07:55 PM 1/5/2004 +0100, Lars Balker Rasmussen wrote: The Perl 6 Summarizer [EMAIL PROTECTED] writes: people's salaries will depend on Parrot. I confess I wouldn't be surprised if, by the end of the year, we haven't seen the full implementation of at least one of the big non-Perl

Re: This week's summary

2004-01-05 Thread Melvin Smith
At 09:30 PM 1/5/2004 +, Piers Cawley wrote: Melvin Smith [EMAIL PROTECTED] writes: At 07:55 PM 1/5/2004 +0100, Lars Balker Rasmussen wrote: The Perl 6 Summarizer [EMAIL PROTECTED] writes: people's salaries will depend on Parrot. I confess I wouldn't be surprised if, by the end

RE: This week's summary

2003-09-15 Thread Melvin Smith
Poor guy, I just told him the same thing off-list. Well I come to think of it, I guess that makes me an old fogey too. -Melvin Dan Sugalski [EMAIL PROTECTED] 09/15/2003 11:39 AM To: Brent Dax [EMAIL PROTECTED] cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL

Re: The Perl 6 Summary

2003-08-18 Thread Melvin Smith
Piers, Regarding your Perl6 Essentials summary: Or, he can write code for IMCC using Parrot Intermediate Language (known as PIR for reasons that aren't entirely clear even to one who has been watching the mailing list since the Parrot project started) I suppose noone has much read the README

Re: of Mops, jit and perl6

2002-07-30 Thread Melvin Smith
At 10:23 AM 7/30/2002 +0200, Leopold Toetsch wrote: Dan Sugalski wrote: Just out of curiosity, I presume the (rather abysmal) perl 6 numbers We have already the same Mops as perl5, but additionaly 2.3 seconds overhead. Just running the byte code is as fast as perl5. Without jit, mops.p6

Re: of Mops, jit and perl6

2002-07-29 Thread Melvin Smith
At 07:57 PM 7/29/2002 -0700, Sean O'Rourke wrote: On Mon, 29 Jul 2002, Dan Sugalski wrote: Just out of curiosity, I presume the (rather abysmal) perl 6 numbers include time to generate the assembly and assemble it--have you tried running the generated code by itself as a test? (At the

Re: [PRE-RELEASE] Release of 0.0.7 tomorrow evening

2002-07-22 Thread Melvin Smith
At 12:00 PM 7/22/2002 +0100, Nicholas Clark wrote: On Mon, Jul 22, 2002 at 11:21:09AM +0100, Graham Barr wrote: On Mon, Jul 22, 2002 at 11:14:15AM +0100, Sam Vilain wrote: Sean O'Rourke [EMAIL PROTECTED] wrote: languages/perl6/README sort of hides it, but it does say that If you

%MY (was What's MY.line?)

2002-07-11 Thread Melvin Smith
At 01:08 PM 7/11/2002 -0700, Ashley Winters wrote: On Thursday 11 July 2002 11:47 am, Chip Salzenberg wrote: According to Dan Sugalski: At 9:50 PM -0400 7/9/02, Chip Salzenberg wrote: 3a. If so, how can one distinguish among the e.g. many Cmy $foo variables declared within

Re: What's MY.line?

2002-07-10 Thread Melvin Smith
At 04:24 PM 7/10/2002 +0100, [EMAIL PROTECTED] wrote: Dan Sugalski [EMAIL PROTECTED] writes: At 9:50 PM -0400 7/9/02, Chip Salzenberg wrote: 3. Is C%MY intended to reflect the PAD? Yes. Hey! How's this for a scary thought: $continuation.the_pad I'll get my coat. Hah, good

Re: Apoc 5 questions/comments

2002-06-09 Thread Melvin Smith
At 10:21 PM 6/9/2002 +1000, Damian Conway wrote: Richard Nuttall wrote: Grammar::Python, Grammar::Ruby, Grammar::PHP ? I should imagine that the first two at least would be very likely, given that we wish both of those languages to run on top of Parrot. Given that by the time Parrot is beefy

Parrot IR 0.0.2

2002-06-04 Thread Melvin Smith
Cross-posted to p6l and cardinal. Parrot Intermediate Compiler (or Intermediate Representation) See parrot/languages/imcc Just another round of commits, supporting more directives and instructions. Correctly handling indexed use of strings ala: str[0] = A ch = str[0] Will have this working

Re: Accessor methods ?

2002-05-16 Thread Melvin Smith
At 06:11 PM 5/16/2002 -0400, Aaron Sherman wrote: On Thu, 2002-05-16 at 16:07, Mike Lambert wrote: There're three stages: 1. compile time -- When a module or program is byte-coded 2. load time -- When byte-code is loaded off of disk 3. run time -- When the program

Re: Loop controls

2002-05-01 Thread Melvin Smith
At 11:44 AM 5/1/2002 -0500, Allison Randal wrote: On Wed, May 01, 2002 at 04:22:29PM +1000, Damian Conway wrote: NAME Acme::Don't - The opposite of `do' DESCRIPTION ... Note that the code in the `don't' block must be syntactically valid Perl. This is an

Eliza RFC

2002-04-30 Thread Melvin Smith
Now that Clint has Eliza running on Parrot, I propose that from henceforth, Eliza shall field all newbie questions and take responsibility of the FAQ. Eliza should also field discussions concerning why we don't add new keywords such as elloopo; if you can convince Eliza, then the proposal shall

Re: Defaulting params

2002-04-11 Thread Melvin Smith
At 04:03 PM 4/11/2002 -0400, Aaron Sherman wrote: On Thu, 2002-04-11 at 14:34, Larry Wall wrote: Miko O'Sullivan writes: : Well, I had been hoping to appeal to the mathematical mindset of the list, : but there is a second reason for = in addition to / /=: it's simpler to : understand.

Re: I'll show you mine...

2002-04-10 Thread Melvin Smith
At 09:23 AM 4/10/2002 +0100, Piers Cawley wrote: Okay, this is the beginnings of Scheme in Perl6. I'm sure there's stuff I'm getting wrong. I've not written the parser yet for instance Very nice! Quite a sample, maybe Larry/Damian can use this in one of the next $(A,E)'s my SchemeExpr

Re: Unary dot

2002-04-10 Thread Melvin Smith
At 10:50 AM 4/10/2002 -0700, Glenn Linderman wrote: Mark J. Reed wrote: On Wed, Apr 10, 2002 at 10:30:25AM -0700, Glenn Linderman wrote: method m1 { m2; # calls method m2 in the same class Yes, but does it call it as an instance method on the current invocant or as a class

Re: Unary dot

2002-04-10 Thread Melvin Smith
At 07:40 PM 4/10/2002 +0100, Piers Cawley wrote: Melvin Smith [EMAIL PROTECTED] writes: At 10:50 AM 4/10/2002 -0700, Glenn Linderman wrote: Mark J. Reed wrote: On Wed, Apr 10, 2002 at 10:30:25AM -0700, Glenn Linderman wrote: method m1 { m2; # calls method m2 in the same

Re: Unary dot

2002-04-10 Thread Melvin Smith
At 07:54 PM 4/10/2002 +0100, Piers Cawley wrote: Graham Barr [EMAIL PROTECTED] writes: On Wed, Apr 10, 2002 at 01:35:22PM -0400, Mark J. Reed wrote: On Wed, Apr 10, 2002 at 10:30:25AM -0700, Glenn Linderman wrote: method m1 { m2; # calls method m2 in the same class Yes, but

Re: Unary dot

2002-04-10 Thread Melvin Smith
At 08:04 AM 4/11/2002 +1000, Damian Conway wrote: And welcome back to where we started! ;-) Wow there is a lot of blood on the ground here. Must have been messy... :) Of course, the problem is then: what should the name of this topicalizer variable be? The main options are: $self

Re: Unary dot

2002-04-10 Thread Melvin Smith
At 04:01 PM 4/10/2002 -0600, Luke Palmer wrote: $.foo It's already defined as an instance variable. I don't think I like that. Instance variables are far more common that class variables, so why not just $foo, and you could use a compile-time property for class variables. Like Cis

Re: classes, interfaces, properties and 'is'

2002-04-05 Thread Melvin Smith
At 07:12 AM 4/5/2002 +1000, Damian Conway wrote: Melvin Smith wrote: More generally, it also depends whether you think of out-of-band properties as nouns or adjectives. For example: class Toaster is silver is shiny is hot is little {...} vs: After rereading the example, this one bugs

classes, interfaces, properties and 'is'

2002-04-04 Thread Melvin Smith
Reading Apoc and Exeg 4 I liked most everything. It has already been said many times how Perl6 is finally getting features the OO guys have been wanting forever, so I won't state the obvious again, but I would like to propose an alternate keyword... 1) In Perl6 we can tag metadata properties to

Re: classes, interfaces, properties and 'is'

2002-04-04 Thread Melvin Smith
At 07:12 AM 4/5/2002 +1000, Damian Conway wrote: Melvin Smith wrote: 1) In Perl6 we can tag metadata properties to an object using the 'is' keyword. Err, no. We can add properties to a *class* using Cis. To tag objects (which are run-time phenomena) we'd use Cbut. Oops, ok this was my

Re: Nested whens?

2002-04-03 Thread Melvin Smith
At 07:50 AM 4/3/2002 -0800, Larry Wall wrote: Piers Cawley writes: : Just a thought, I assume that something like the following will be legal: : Yeah, it's not good style; I should really be doing : : $msg.dispatch_to($self) For some people (OO purists), switch statements are message

Re: Re: RFC: new logical operator

2002-02-21 Thread Melvin Smith
At 09:47 AM 2/21/2002 -0500, [EMAIL PROTECTED] wrote: Randal L. Schwartz [EMAIL PROTECTED] wrote: Sam No, but is syntactically equivalent to and in English. It Sam just implies that the second condition is not generally what Sam you'd expect if the first was true. Randal Maybe in the interest

Re: Perl6/Parrot status

2002-02-07 Thread Melvin Smith
things. How can anyone ever figure out which one to use?' Cough cough. Hack. Cough. Choke. -Melvin Smith IBM :: Atlanta Innovation Center [EMAIL PROTECTED] :: 770-835-6984

RE: Perl6 -- what is in a name?

2002-01-28 Thread Melvin Smith
At 01:52 PM 1/28/2002 -0600, Garrett Goebel wrote: From: Brent Dax [mailto:[EMAIL PROTECTED]] Aaron Sherman: # # I think the first guy that gets hired to maintain Perl6 code, # and think hey, I know Perl, no sweat will disagree with # you. I disagree. He'll see stuff he doesn't

Re: Apoc4: The loop keyword

2002-01-25 Thread Melvin Smith
At 11:40 AM 1/25/2002 -0600, Jonathan Scott Duff wrote: On Fri, Jan 25, 2002 at 11:57:25AM +0100, Bart Lateur wrote: On Mon, 21 Jan 2002 15:43:07 -0500, Damian Conway wrote: What we're cleaning up is the ickiness of having things declared outside the braces be lexical to the braces.

Re: need help making auction

2002-01-23 Thread Melvin Smith
At 01:39 PM 1/23/2002 -0800, frank crowley wrote: see attached file. = frank crowley What is it that you wanted us to see? -Melvin

Re: need help making auction

2002-01-23 Thread Melvin Smith
At 01:43 PM 1/23/2002 -0800, you wrote: i need help on making it into an auction that will work. Ok I thought so. You might try [EMAIL PROTECTED] for some beginner tips but I doubt you want to submit a whole script, maybe rephrase your stuff into specific problems you are having. Good luck,

Re: Some Apocalypse 4 exception handling questions.

2002-01-23 Thread Melvin Smith
At 02:25 PM 1/23/2002 -0800, Glenn Linderman wrote: Melvin Smith wrote: I'm not comfortable with this sort of concept. Typically inheritance is going to either take the base implementation or _replace_ the implementation. The replacement can decide to {call|ignore} the base method. I

Re: Some Apocalypse 4 exception handling questions.

2002-01-23 Thread Melvin Smith
At 05:01 PM 1/23/2002 -0600, Jonathan Scott Duff wrote: On Wed, Jan 23, 2002 at 02:45:21PM -0800, Glenn Linderman wrote: Final seems to be a way of sealing off a class or method from future inheritance. Generally, the arguments I've seen on OO lists seem to indicate that regardless of how

Night of the Living Lexical (sequel to Apoc4: The loop keyword)

2002-01-21 Thread Melvin Smith
At 12:32 PM 1/21/2002 -0500, Michael G Schwern wrote: On Sun, Jan 20, 2002 at 10:58:34PM -0800, Larry Wall wrote: : while( my $line = FILE ) { : ... : } That still works fine--it's just that $line lives on after the while. This creeping lexical leakage bothers me.

RE: Night of the Living Lexical (sequel to Apoc4: The loop keywor d)

2002-01-21 Thread Melvin Smith
At 03:02 PM 1/21/2002 -0500, you wrote: Why all the fuss? Often, you would *want* to access that lexical after the loop terminates, for instance to check how it terminated. Why would you want to check it when the condition is typically boolean? while( my $line = FILE ) { I think many

RE: Night of the Living Lexical (sequel to Apoc4: The loop keywor d)

2002-01-21 Thread Melvin Smith
At 03:14 PM 1/21/2002 -0500, Melvin Smith wrote: At 03:02 PM 1/21/2002 -0500, you wrote: Why all the fuss? Often, you would *want* to access that lexical after the loop terminates, for instance to check how it terminated. Why would you want to check it when the condition is typically boolean

Re: Apoc4: The loop keyword

2002-01-21 Thread Melvin Smith
At 12:50 PM 1/21/2002 -0800, Larry Wall wrote: In most other languages, you wouldn't even have the opportunity to put a declaration into the conditional. You'd have to say something like: I grudgingly agree here. Where did this shorthand come from anyway? The first time I ever used it was C++

Re: Night of the Living Lexical (sequel to Apoc4: The loop keyword)

2002-01-21 Thread Melvin Smith
At 04:12 PM 1/21/2002 -0500, Uri Guttman wrote: MS lives on, ... creeping lexical, I feel the same way, we must find some MS way to kill these... :) well, larry looks at it differently and what he said on the cruise makes Well we had a go, but our kung fu powers were no match for