Re: Apoc 5 questions/comments

2002-06-10 Thread Ariel Scolnicov
Damian Conway <[EMAIL PROTECTED]> outlined his plans for world domination: [...] > > Dammit, you fools! Do I have to think of *everything*??? Just tie him to a > steel bench and apply the Ruby laser! > > I do apologize, Mr Wardley. Good evil assistants are just impossible to get > these days.

Re: [COMMIT] Subs and co-routines in Parrot

2002-06-10 Thread Dan Sugalski
At 12:53 PM +0200 6/9/02, Jerome Vouillon wrote: >On Sat, Jun 08, 2002 at 03:54:06PM -0400, Melvin Smith wrote: >The Java bytecode interpreter is clearly not optimized for speed. >David Gregg, Anton Ertl and Andreas Krall have experimented with an >improved Java bytecode interpreter. One of the

Re: Stack

2002-06-10 Thread Dan Sugalski
At 11:09 AM -0400 6/6/02, Jason Gloudon wrote: > >This seems like a good time to send in this patch: > >It allocates the stack content memory using a buffer. This makes the stack >chunks and the memory used to hold stack contents visible to the garbage >collector. One can incrementally add to thi

Re: Subs for parrot

2002-06-10 Thread Jerome Vouillon
On Sun, Jun 09, 2002 at 05:18:31PM -0400, Dan Sugalski wrote: > Who says we're only using callcc to capture continuations? We can do > it anywhere, so we potentially need the registers stored so we can > properly restore state when we're invoked. I don't understand what you mean. In scheme, ca

Re: Apoc 5 questions/comments

2002-06-10 Thread Jonathan Scott Duff
On Sun, Jun 09, 2002 at 03:34:16PM +1000, Damian Conway wrote: > Trey Harris wrote: > > rule val { > > [ # quoted > >$b := <['"]> > >( [ \\. | . ]*? ) > >$b > > ] | # or not > >(\H+) > > } > > Not quite. Assigning to $b is a capture. I'm confused. The e

Re: Apoc 5 questions/comments

2002-06-10 Thread Dave Storrs
I assume that 'fatal.pm' is a new pragma. 1) What (if anything) does it do, aside from turning 'fail' into a fatal exception when used outside a regex? 2) Do you need to use it before you can (usefully) use 'fail' INSIDE a regex? (I would assume not, but thought I'd check.) Dave On Fri, 7

Re: Apoc 5 questions/comments

2002-06-10 Thread Larry Wall
On Mon, 10 Jun 2002, Dave Storrs wrote: > > I assume that 'fatal.pm' is a new pragma. Already exists for Perl 5, actually. > 1) What (if anything) does it do, aside from turning 'fail' into a fatal > exception when used outside a regex? What fatal currently does is wrap built-ins that might r

Re: Apoc 5 questions/comments

2002-06-10 Thread Dave Storrs
On Mon, 10 Jun 2002, Larry Wall wrote: > On Mon, 10 Jun 2002, Dave Storrs wrote: > > > > > I assume that 'fatal.pm' is a new pragma. > > Already exists for Perl 5, actually. *blush* Must have missed it. Drat, and I just finished rereading Camel III. Apologies. Dave

Re: Apoc 5 questions/comments

2002-06-10 Thread Dave Storrs
On Fri, 7 Jun 2002, Luke Palmer wrote: > > Dave Storrs wrote: > > Can we please have a 'reverse x' modifier that means "treat whitespace as > > literals"? Yes, we are living in a Unicode world now and your data could > > > > /FATAL ERROR\:Process (\d+) received signal\: (\d+)/ > > I don't

Re: Apoc 5 questions/comments

2002-06-10 Thread Damian Conway
Jonathan Scott Duff wrote: > > > rule val { > > > [ # quoted > > >$b := <['"]> > > >( [ \\. | . ]*? ) > > >$b > > > ] | # or not > > >(\H+) > > > } > > > > Not quite. Assigning to $b is a capture. > > I'm confused. The examples in A5 all show $var := (pa

Re: Apoc 5 questions/comments

2002-06-10 Thread Larry Wall
On Sun, 9 Jun 2002 [EMAIL PROTECTED] wrote: : The parsing of perl 6 is the application of a huge, compiled, regex, correct? No, it's a system of compiled regexes which we're calling a grammar. : In order to parse the new syntax, perl6 is going to have to compile the : new rule, and stick it in

A5 - A job well done

2002-06-10 Thread Richard Proctor
Larry, Wow, that was a very good demolition and rebuilding of the regex edifice. When the RFCs were being written I spent many hours thinking over some of the issues and writting many of the RFCs on regexes, trying to build on what was in perl5, without changing the existing language use. By al

Re: Subs for parrot

2002-06-10 Thread Dan Sugalski
At 11:31 AM +0200 6/10/02, Jerome Vouillon wrote: >On Sun, Jun 09, 2002 at 05:18:31PM -0400, Dan Sugalski wrote: >> Who says we're only using callcc to capture continuations? We can do >> it anywhere, so we potentially need the registers stored so we can >> properly restore state when we're inv

[PATCH] packfile reading

2002-06-10 Thread Jason Gloudon
This fixes the problem with reading .pbc files on win32. Someone may want to write the code to do something useful with the results of stat() when mmap() is not being used. Index: assemble.pl === RCS file: /cvs/public/parrot/assemb

Consensus needed...

2002-06-10 Thread Jeff
Tests are now failing because of the removal of the 'inc_n_ic' opcode. I find this interesting for several reasons. One, the tests probably should have been removed. Two, once the 'inc' operator has two parameters, it is no longer 'increment' in my mind. I would call two-parameter 'inc' two-parame

Re: [PATCH] packfile reading

2002-06-10 Thread Josh Wilmes
At 19:33 on 06/10/2002 EDT, Jason Gloudon <[EMAIL PROTECTED]> wrote: > Someone may want to write the code to do something useful with the results > of stat() when mmap() is not being used. It's supposed to already do that... did i goof? --Josh

Re: Consensus needed...

2002-06-10 Thread Dan Sugalski
At 8:17 PM -0400 6/10/02, Jeff wrote: >If anyone would like 'inc_i_ic' and the like to still be called 'inc_', >speak within the next few days or hold your peace until someone else >decides to add them back to CVS. I'll rewrite the tests to 'add_n_ic' >and that ilk. Too bad, they lose. :) add is

For August

2002-06-10 Thread Dan Sugalski
Here's the list 'o stuff I'd like to get done for August: *) Multiple interpreters with inter-interpreter calling done right *) Threads with multiple independent interpreters *) Method calls *) PMC attributes -- Dan --

Re: For August

2002-06-10 Thread Robert Spier
I've updated http://www.parrotcode.org/todo with the latest info from Dan. Dan Sugalski writes: >Here's the list 'o stuff I'd like to get done for August: > >*) Multiple interpreters with inter-interpreter calling done right >*) Threads with multiple independent interpreters >*) Method calls >*

Stacks, stacks, stacks (And frames)

2002-06-10 Thread Dan Sugalski
(A note--when this says "stack" I really mean all the stacks) Okay, I've been thinking about stacks and stack frames, and suchlike things. Well, calling them "stacks" is a bit of a misnomer, since they're really trees, and that's partially where things get nasty. Looking at them as trees does