Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Bart Lateur
On Thu, 25 Oct 2001 16:53:46 -0500, Garrett Goebel wrote: Piers Cawley has written a nice article entitled: Perl 6 : Not Just For Damians. http://www.perl.com/pub/a/2001/10/23/damians.html I just hope that you don't really have to insert that many blank lines in your code just to make it

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Piers Cawley
Uri Guttman [EMAIL PROTECTED] writes: GG == Garrett Goebel [EMAIL PROTECTED] writes: GG Piers Cawley has written a nice article entitled: Perl 6 : Not GG Just For Damians. GG If the hair on the back of your neck rises when thinking about GG Perl 6, or even if it doesn't... give

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Aaron Sherman
On Thu, Oct 25, 2001 at 04:53:46PM -0500, Garrett Goebel wrote: Piers Cawley has written a nice article entitled: Perl 6 : Not Just For Damians. I had missed what unary . really did, and this explained it to me. I'm now much more excited about it as a with-like operator. It does make me

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Jonathan Scott Duff
On Fri, Oct 26, 2001 at 01:13:42PM -0400, Aaron Sherman wrote: It does make me think, though... Would it make sense to have an accessor operator? For example, in Perl5 I would do this: sub foo { my $self = shift; my $old = $self-{foo}; # So

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Damian Conway
Scott wrote: Actually, I think it becomes: sub foo is method { my $old = .foo; .foo = shift if @_; return $old; } But, I could be wrong. Any Damians care to enlighten? :-) Well, I'm not a Damian, but I play one on perl6-language.

RE: Perl 6 - Cheerleaders?

2001-10-26 Thread Brent Dax
Damian Conway: # Scott wrote: # # Actually, I think it becomes: # # sub foo is method { # my $old = .foo; # .foo = shift if @_; # return $old; # } # # But, I could be wrong. Any Damians care to enlighten? :-) # # Well, I'm not a Damian, but I

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Aaron Sherman
On Sat, Oct 27, 2001 at 08:09:57AM +1000, Damian Conway wrote: Larry has ideas, I have ideas... All good so far ;-) However, I don't think the above syntax will be it. I think it would likely be closer to: class Demo { my $.foo; method foo {

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Piers Cawley
Jonathan Scott Duff [EMAIL PROTECTED] writes: On Fri, Oct 26, 2001 at 01:13:42PM -0400, Aaron Sherman wrote: It does make me think, though... Would it make sense to have an accessor operator? For example, in Perl5 I would do this: sub foo { my $self = shift;

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Jonathan Scott Duff
On Fri, Oct 26, 2001 at 03:28:57PM -0700, Brent Dax wrote: What if we have an instance variable $foo and a global $foo, and we want to access the global? Do you mean if we've hidden a lexical of the same name in the same scope? I seem to recall something related to %MY that would let you

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Aaron Sherman
On Fri, Oct 26, 2001 at 01:53:09PM -0500, Jonathan Scott Duff wrote: On Fri, Oct 26, 2001 at 01:13:42PM -0400, Aaron Sherman wrote: In Perl6 with the unary ., that becomes: sub .foo (*@args) { my $old = $.{foo}; # So $obj.foo(undef) will work

Re: Perl 6 - Cheerleaders?

2001-10-26 Thread Michael G Schwern
On Fri, Oct 26, 2001 at 01:53:09PM -0500, Jonathan Scott Duff wrote: Actually, I think it becomes: sub foo is method { my $old = .foo; .foo = shift if @_; return $old; } But, I could be wrong. Any Damians care to enlighten? :-) I'm not a

decimal math package

2001-10-26 Thread Uri Guttman
dan i have have been talking about the decimal math package for bigint/bigfloat. i have some ideas and am looking for some of you to work with me on this. my idea is to use an old hardware trick called excess-3 to efficiently do decimal adds/subtracts in word sized chunks. this is much faster

Parameter passing conventions

2001-10-26 Thread Dan Sugalski
Okay, here are the conventions. *) The callee is responsible for saving and restoring non-scratch registers *) The first five registers (I0-I4, S0-S4, P0-P4, N0-N4) are scratch and do not have to be preserved by the callee *) In *ALL* cases where the stack is used, things are put on the stack

Re: Parameter passing conventions

2001-10-26 Thread Sam Tregar
On Fri, 26 Oct 2001, Dan Sugalski wrote: Okay, here are the conventions. Great. Anyone want to offer up some examples or should I just wait for Jako support to see this in action? -sam

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brian Wheeler
On Fri, 2001-10-26 at 09:57, Sam Tregar wrote: On Fri, 26 Oct 2001, Brent Dax wrote: What if I want my compiler to be lazy? Do you have the right to punish me for my laziness by making me add constant folding to my optimizer (or perhaps making me *write* an optimizer just to do constant

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brent Dax
Sam Tregar: # On Fri, 26 Oct 2001, Brent Dax wrote: # # What if I want my compiler to be lazy? Do you have the # right to punish # me for my laziness by making me add constant folding to my # optimizer (or # perhaps making me *write* an optimizer just to do constant folding)? # # Actually, a

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brent Dax
Dan Sugalski: # At 10:51 AM 10/26/2001 -0400, Jason Gloudon wrote: # On Fri, Oct 26, 2001 at 06:54:32AM -0700, Brent Dax wrote: # # What if I want my compiler to be lazy? Do you have the # right to punish # me for my laziness by making me add constant folding to # my optimizer (or #

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brent Dax
Brian Wheeler: # I've got a dumb question, and its probably because I've not # been paying # attention, so I apologise in advance. # # How does a program access more than 32 variables simultaneously? In # real CPU architectures you've got main memory storage, but # here we only # have registers.

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Dan Sugalski
At 08:32 AM 10/26/2001 -0700, Brent Dax wrote: Dan Sugalski: # More importantly, the answer to the preceeding question can be Yes. So why don't we wait until we decide we don't have enough opcodes? Smells like premature optimization to me. Note the answer was can be, not will be...

Re: Ooops, sorry for that blank log message.

2001-10-26 Thread Jason Gloudon
On Fri, Oct 26, 2001 at 06:54:32AM -0700, Brent Dax wrote: What if I want my compiler to be lazy? Do you have the right to punish me for my laziness by making me add constant folding to my optimizer (or perhaps making me *write* an optimizer just to do constant folding)? You don't have to

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Dan Sugalski
At 10:28 AM 10/26/2001 -0500, Brian Wheeler wrote: On Fri, 2001-10-26 at 09:57, Sam Tregar wrote: On Fri, 26 Oct 2001, Brent Dax wrote: What if I want my compiler to be lazy? Do you have the right to punish me for my laziness by making me add constant folding to my optimizer (or

Task 1 done

2001-10-26 Thread Dan Sugalski
We now have separate control and save stacks. saves and restores will *not* affect subroutine calls, nor scope entries, lexical locks, or exception handlers. Dan --it's like this--- Dan Sugalski

Re: Ooops, sorry for that blank log message.

2001-10-26 Thread Dan Sugalski
At 10:51 AM 10/26/2001 -0400, Jason Gloudon wrote: On Fri, Oct 26, 2001 at 06:54:32AM -0700, Brent Dax wrote: What if I want my compiler to be lazy? Do you have the right to punish me for my laziness by making me add constant folding to my optimizer (or perhaps making me *write* an

Re: Ooops, sorry for that blank log message.

2001-10-26 Thread Brian Wheeler
On Fri, 2001-10-26 at 01:32, Tom Hughes wrote: In message [EMAIL PROTECTED] Brian Wheeler [EMAIL PROTECTED] wrote: Darn it, I fat fingered the log message. This is a fix which changes the way op variants are handled. The old method forgot the last variant, so

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Sam Tregar
On Fri, 26 Oct 2001, Brent Dax wrote: What if I want my compiler to be lazy? Do you have the right to punish me for my laziness by making me add constant folding to my optimizer (or perhaps making me *write* an optimizer just to do constant folding)? Actually, a really lazy compiler will

Re: Ooops, sorry for that blank log message.

2001-10-26 Thread Tom Hughes
In message [EMAIL PROTECTED] Brian Wheeler [EMAIL PROTECTED] wrote: Darn it, I fat fingered the log message. This is a fix which changes the way op variants are handled. The old method forgot the last variant, so thing(i,i|ic,i|ic) would generate: thing(i,i,i) thing(i,i,ic)

Re: [PATCH] Making Win32 work

2001-10-26 Thread Alex Gough
On Thu, 25 Oct 2001, Brent Dax wrote: With the patch attached, all tests pass on Win32. This also gets MIPSPro working (although there continue to be lots of warnings). We need to alter the build system to run genclass.pl (or run it to remake the version of intclass.c which cvs gives out).

RE: [PATCHES] Exception idea

2001-10-26 Thread Stephen Howard
If I might make a very small suggestion, for clarity's sake you might want to consider renaming your opcodes push_e and pop_e, or push_x and pop_x. I don't know if this violates any naming conventions you already have in place, however. -Stephen -Original Message- From: Jeff

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Brent Dax
Tom Hughes: # In message [EMAIL PROTECTED] # Brian Wheeler [EMAIL PROTECTED] wrote: # # Darn it, I fat fingered the log message. # # This is a fix which changes the way op variants are # handled. The old # method forgot the last variant, so thing(i,i|ic,i|ic) would # generate: #