Question about "match" vtable method and regexes

2002-01-11 Thread David M. Lloyd
I have a design question here. Why did we take the approach of having a match method on every single vtable, instead of having a vtable for regular expressions, and have regex be an object (like Perl 5)? >From a Perl (6) perspective, it makes more sense to me: # This: $a =~ /$regex/; # wo

RE: cvs commit: parrot/docs vtables.pod

2002-01-11 Thread coral
> cvsuser 02/01/08 14:55:59 > > Modified:docs vtables.pod > Log: > Clarify what get_string should do. > > Revision ChangesPath > 1.7 +4 -1 parrot/docs/vtables.pod > > --- vtables.pod 4 Jan 2002 00:51:00 - 1.6 > +++ vtables.pod 8 Jan 2002

Another regex question

2002-01-11 Thread David M. Lloyd
Just out of curiosity, is the regex compiler going to be written in Parrot or C? - D <[EMAIL PROTECTED]>

Re: [PATCH] jumps with pbc2c.pl

2002-01-11 Thread Nicholas Clark
On Fri, Jan 11, 2002 at 12:54:08PM -0500, Dan Sugalski wrote: > At 06:01 PM 1/10/2002 -0500, Jason Gloudon wrote: > >Here is a patch that makes pbc2c generated code work with the bsr opcode. It > >creates a new opcode 'enternative', and uses this to support a mixed model of > >interpretation and

Re: Proposal: Naming conventions

2002-01-11 Thread David M. Lloyd
On Fri, 11 Jan 2002, Jonathan Leffler wrote: > On Thu, 10 Jan 2002, Steve Fink wrote: > > >[...] I'd like to propose a convention [...] By example: > > > >struct somename_t { ... }; > >typedef struct somename_t { ... }* Somename; > > > >The non-typedef'd name of a struct type ends in _t. > > Is

tinderbox in flames...

2002-01-11 Thread Jesse
With current cvs, I get the following running Configure.pl-- Building ./testparrotsizes.cfrom testparrotsizes_c.in... In file included from include/parrot/parrot.h:75, from testparrotsizes.c:9: include/parrot/string.h:40: parse error before `;' include/parrot/string

Re: Proposal: Naming conventions

2002-01-11 Thread Steve Fink
On Fri, Jan 11, 2002 at 11:45:03AM -0800, Jonathan Leffler wrote: > On Thu, 10 Jan 2002, Steve Fink wrote: > > >[...] I'd like to propose a convention [...] By example: > > > >struct somename_t { ... }; > >typedef struct somename_t { ... }* Somename; > > > >The non-typedef'd name of a struct ty

Re: Proposal: Naming conventions

2002-01-11 Thread Jonathan Leffler
On Thu, 10 Jan 2002, Steve Fink wrote: >[...] I'd like to propose a convention [...] By example: > >struct somename_t { ... }; >typedef struct somename_t { ... }* Somename; > >The non-typedef'd name of a struct type ends in _t. Is this a good idea? The _t suffix is reserved by POSIX for use b

New memory allocator starting

2002-01-11 Thread Dan Sugalski
I've got the first bits of our private memory allocator in. It's a bit wasteful (allocation regions are multiples of 16 bytes) but it passes all the tests. cvsup and abuse heavily, please. As a side-effect, it close to doubles the speed of life.pbc when running in the interpreter. (But it's ra

Re: [PATCH] Make save work for sizeof(opcode_t) != sizeof(INTVAL) (caveat) [APPLIED]

2002-01-11 Thread Dan Sugalski
At 06:49 PM 1/10/2002 -0600, David M. Lloyd wrote: > > The problem is that when you save an int constant on the stack in a > > mixed 32/64-bit system, the int type is 8 bytes but the pointer points > > to four bytes of int constant and four bytes of... something else. So > > it has to be copied o

Re: [PATCH] jumps with pbc2c.pl

2002-01-11 Thread Dan Sugalski
At 06:01 PM 1/10/2002 -0500, Jason Gloudon wrote: >Here is a patch that makes pbc2c generated code work with the bsr opcode. It >creates a new opcode 'enternative', and uses this to support a mixed model of >interpretation and execution of compiled C code. Applied, thanks. Seems to give life abo

Re: New benchmark

2002-01-11 Thread Dan Sugalski
At 08:44 AM 1/11/2002 +0100, Sebastian Bergmann wrote: >Dan Sugalski wrote: > > Okay, I've abused examples/assembly/life.pasm to be a benchmark > > program. It now will time generations/sec, and does rather more than > > mops.pasm does. > > Where can I find implementations of this algorithm in o