Re: [perl #16269] [PATCH] COW...Again and Again

2002-08-18 Thread Mike Lambert
> Elapsed times for 'time parrot hanoi.pbc 14 > /dev/null' are: > CVS: 52.81, 52.05, 52.33 > CVS + grey COW: 51.53, 52.06, 51.67 > CVS + Mike's COW: 44.31, 44.48, 44.55 > CVS + grey1: 35.89, 36.48, 36.60 (+COW +cyclecount -stackwalk) > End June grey: 30.14, 29.35, 29.53 > > And 5000 generations of

Re: [perl #16274] [PATCH] Keyed access

2002-08-18 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Mike Lambert <[EMAIL PROTECTED]> wrote: > - assemble.pl: > shouldn't the code : > elsif ($_->[0] =~ /^([snpk])c$/) { # String/Num/PMC/Key constant > include support for "kic" somewhere? It doesn't need to as to_bytecode() turns [1] into an ic argu

Perl 6 types: ref() vs isa() (was: Just reading up on Pike...)

2002-08-18 Thread Andy Wardley
[EMAIL PROTECTED] wrote: > [...] whose type is simultaneously C and C. Has any thought yet gone into the builtin Perl types and what they will be called in Perl 6? Will there be a difference between the C of something and the type(s) that C returns? In keeping with the lower case C and C exa

Parrot Tokenizer

2002-08-18 Thread Peter Sergeant
If anyone is interested, I've hacked together a Parrot tokenizer ... the main intention for it was to form the basis of a syntax highlighter, but I'm sure someone will find more creative applications for it... I hacked together a very quick and dirty syntax highlighter (about 10 lines) using t

Re: Parrot Tokenizer

2002-08-18 Thread Peter Sergeant
Peter Sergeant wrote: > If anyone is interested, I've hacked together a Parrot tokenizer ... the > main intention for it was to form the basis of a syntax highlighter, but > I'm sure someone will find more creative applications for it... To clarify: it's actually a PASM tokenizer... +Pete

[perl #16283] parrot dandruff

2002-08-18 Thread via RT
# New Ticket Created by Jarkko Hietaniemi # Please include the string: [perl #16283] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=16283 > Tru64 finds the following objectionable spots from a fresh CVS checkout: cc: Warn

Re: [perl #16269] [PATCH] COW...Again and Again

2002-08-18 Thread Peter Gibbs
Mike Lambert wote: > Run languages/basic/basic.pl. > Type "LOAD WUMPUS, and hit return. > Type "RUN", and hit return. > Type "N" and hit return. The thot plickens! My results for the above are: Interpreter version Time Data size CVS8s1320kB CVS +

Re: [perl #16283] parrot dandruff

2002-08-18 Thread Steve Fink
On Sun, Aug 18, 2002 at 02:35:09PM +, Jarkko Hietaniemi wrote: > > Tru64 finds the following objectionable spots from a fresh CVS checkout: Does this patch fix it? (Though even if it does, I wouldn't be at all surprised if some other compiler choked on it.) Index: rx.ops ===

Re: [perl #16278] [PATCH] Quicker pointer checking for stack walking

2002-08-18 Thread Steve Fink
It also reverts my bugfix for missing the first PMC allocated. I have re-applied the fix.

[perl #16286] Implement --debugging flag to Configure.pl

2002-08-18 Thread via RT
# New Ticket Created by Steve Fink # Please include the string: [perl #16286] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=16286 > Enclosed is a patch for my best guess as to how to implement the --debugging flag to Conf

Re: Perl summary for week ending 2002-08-04

2002-08-18 Thread Damian Conway
Tim Bunce wrote: >>Personally, I'm deprecating "regex" and its variants in my own writing and >>speaking, and trying to stick to "rule" and "pattern". > > > Using "pattern" in general and "rule" in the context of a grammar? Using "pattern" for the contents and "rule" for the container. But no

Re: A Perl 6 class question

2002-08-18 Thread Damian Conway
Trey Harris asked: > Another one... > > class Foo is Bar; > > method a { > setup(); > } > > 1; > # EOF > > (Is the 1 still required? No. > I think I heard Damian say it was going away.) Yes. > The question is, is this valid, if Bar defines a sub/static method > 'setup'? If C is a C,

Re: [perl #16269] [PATCH] COW...Again and Again

2002-08-18 Thread Mike Lambert
> The thot plickens! Unforunately...yes. :) > My results for the above are: > Interpreter version Time Data size > CVS8s1320kB > CVS + ML COW 20s 19172kB > CVS + Grey15s1884kB > CVS + ML COW - re

Re: Just reading up on Pike...

2002-08-18 Thread Damian Conway
Trey Harris wrote: > Then I'd assume that multiple inheritance of both types would also > conform? Yes. > So if $! is Errno, where class Errno is str is int > that would work too? I very much doubt you'll be able to inherit from the builtin types. > (or is that Errno is str, int?), M

New vtable methods

2002-08-18 Thread Dan Sugalski
Okay, here's two new vtable methods freeze(PMC) - Responsible for freezing a PMC to the current freeze data stream. Throws an exception on error thaw(PMC) - A class method that thaws a PMC from the current thaw data stream Both of these should use the freeze/thaw API--I'll get that defin

Re: [perl #16269] [PATCH] COW...Again and Again

2002-08-18 Thread Peter Gibbs
Here are some timings on my system with your basic stats patch: These results are taken when the first command input is expected, having keyed-ahead the N to avoid delays. CVS + COW: (using your original cow patch) Took 36.080085 seconds. A total of 2412496 bytes were allocated A total of 18 DOD

Re: [perl #16048] [PATCH] Eliminate alignment warning in packfile.c

2002-08-18 Thread Mike Lambert
> The following patch eliminates an alignment warning in packfile.c, and > adds a comment to packfile.h about alignment assumptions underlying the > size of the packfile header. Applied, thanks. > I wonder if we ought to have a Configure "sanity section" wherein various > assumptions are tested

Re: [perl #16269] [PATCH] COW...Again and Again

2002-08-18 Thread Tanton Gibbs
One thing that might be worth noting is that the current CVS version does do some "unintended" COW things. My previous patch (the RECALL -> AGAIN) thing attempted to fix this but has not been applied. Basically, when setting a value that was previously a non-string value (integer, float, etc...)

Re: [perl #15907] [PATCH] Make warnings configurable

2002-08-18 Thread Mike Lambert
> In the quest for removing warnings, I added an option --ccwarn to > Configure.pl. With this option I could selectivly turn on and off > warnings, and especially compile with -Werror, so I don't miss any > warnings. The simple warnings (the missing return values) were already > fixed before I was

Re: [DRAFT PPD] External Data Interfaces

2002-08-18 Thread Nicholas Clark
On Sat, Aug 17, 2002 at 03:58:32PM -0700, Brent Dax wrote: > =head2 Strings > > Parrot-level Cs are to be represented by the type > C. This type is defined to be a pointer to a C parrot_string_t>. > > The functions for creating and manipulating Cs are listed > below. Is it worth arranging a r

RE: [DRAFT PPD] External Data Interfaces

2002-08-18 Thread Brent Dax
Nicholas Clark: # > The functions for creating and manipulating Cs are # > listed below. # # Is it worth arranging a reminder in here that as parrot is # garbage collected there is no confusion about who owns # pointers to blah? Probably. (Actually, I'd probably put it in a section above thi

Re: [perl #16283] parrot dandruff

2002-08-18 Thread Jarkko Hietaniemi
On Sun, Aug 18, 2002 at 05:23:23PM -, Steve Fink wrote: > On Sun, Aug 18, 2002 at 02:35:09PM +, Jarkko Hietaniemi wrote: > > > > Tru64 finds the following objectionable spots from a fresh CVS checkout: > > Does this patch fix it? (Though even if it does, I wouldn't be at all > surprised

Re: [perl #16283] parrot dandruff

2002-08-18 Thread Mike Lambert
> > > Tru64 finds the following objectionable spots from a fresh CVS checkout: > > > > Does this patch fix it? (Though even if it does, I wouldn't be at all > > surprised if some other compiler choked on it.) > > Works okay in Tru64 and IRIX which are known for their pointer pickiness. Applied, t

Re: [perl #16269] [PATCH] COW...Again and Again

2002-08-18 Thread Mike Lambert
> Here are some timings on my system with your basic stats patch: > These results are taken when the first command input is expected, > having keyed-ahead the N to avoid delays. Technically, the patch I gave you doesn't count the delay waiting for user input. But there are other things to discuss

Re: New vtable methods

2002-08-18 Thread Brian Ingerson
On 18/08/02 16:06 -0400, Dan Sugalski wrote: > Okay, here's two new vtable methods > >freeze(PMC) - Responsible for freezing a PMC to the current freeze > data stream. Throws an exception on error > >thaw(PMC) - A class method that thaws a PMC from the current thaw data stream > > Both