Re: [netlabs #610] hash re-adjustment problem (with patch) [APPLIED]

2002-05-21 Thread Daniel Grunblatt
On 22 May 2002, Sean O'Rourke (via RT) wrote: > # New Ticket Created by Sean O'Rourke > # Please include the string: [netlabs #610] > # in the subject line of all future correspondence about this issue. > # http://bugs6.perl.org/rt2/Ticket/Display.html?id=610 > > > > I believe there is a bug in

[netlabs #610] hash re-adjustment problem (with patch)

2002-05-21 Thread via RT
# New Ticket Created by Sean O'Rourke # Please include the string: [netlabs #610] # in the subject line of all future correspondence about this issue. # http://bugs6.perl.org/rt2/Ticket/Display.html?id=610 > I believe there is a bug in how the perlhash pmc adjusts its buckets after reallocat

Re: Backslashes

2002-05-21 Thread Rafael Garcia-Suarez
Larry Wall wrote : > > Well, if anything, we're going the other direction, and enriching what > you can do with a backslash in single quotes slightly. But it ought > to be pretty easy to define your own hyperquotes. We might also have > options on quotes like we do on regexen. Then we could te

[netlabs #609] Replenish-Level Simplification

2002-05-21 Thread via RT
# New Ticket Created by Mike Lambert # Please include the string: [netlabs #609] # in the subject line of all future correspondence about this issue. # http://bugs6.perl.org/rt2/Ticket/Display.html?id=609 > Below patch simplifies the DOD high-level watermark code so it doesn't break as easil

REGEX structure and Regex implementation

2002-05-21 Thread David M. Lloyd
Are the REGEX structure and the match vtable methods officially dead? The POD inside of rx.ops does not mention them at all, and right now REGEX is typedef'd to void and no-one uses the 'match' method for anything. Since regular expressions will most likely be implemented as Parrot bytecode, wou

Re: [netlabs #607] [PATCH] COW strings (again)

2002-05-21 Thread Dan Sugalski
At 3:09 PM -0400 5/21/02, Mike Lambert wrote: >But I think the strstart is a better idea regardless. It's what perl5 did >anyway, isn't it? That's not necessarily an endorsement of an idea as good... :) -- Dan --"it's

Re: [netlabs #607] [PATCH] COW strings (again)

2002-05-21 Thread Mike Lambert
> Actually, we don't. (Sez the man catching up on altogether too much > mail) Since we're putting the COW stuff at the tail end, substrings > of COW strings are fine. You set the bufstart to where the substring > starts, buflen set so it goes to the end of the original buffer, and > the string len

Re: [netlabs #607] [PATCH] COW strings (again)

2002-05-21 Thread Dan Sugalski
At 11:11 AM -0700 5/21/02, Steve Fink wrote: >On Tue, May 21, 2002 at 01:38:45PM -0400, Dan Sugalski wrote: >> At 5:27 PM + 5/21/02, "Peter Gibbs" (via RT) wrote: >> > > I think I'd like these differently. STRING is a subclass of Buffer, >> >> and the bufstart and buflen fields in Buffers p

Re: Backslashes

2002-05-21 Thread Aaron Sherman
On Tue, 2002-05-21 at 13:22, Buddha Buck wrote: > At 01:10 PM 05-21-2002 -0400, Aaron Sherman wrote: > >The quesiton here is that C<\\'>, which means something different in > >your recommendation than it means in Perl5, but still does the same > >thing > > And the other question is how to ge

Re: GC vtable method limitations?

2002-05-21 Thread Steve Fink
On Mon, May 20, 2002 at 03:34:27PM -0400, Mike Lambert wrote: > > Collect's dead, I think. I'm not seeing the point anymore, and since > > we do collect runs through the buffers and not the PMCs, there's no > > place to find what needs calling. > > Well, the hashtable could certainly use it. :) T

Re: Backslashes

2002-05-21 Thread Paolo Molaro
On 05/21/02 Aaron Sherman wrote: > On Tue, 2002-05-21 at 12:57, Michael G Schwern wrote: > > > Here's an easier one: backslash followed by the delimiter is that thing. > > Everything else is literal. > > > > print 'c:\it\'s\easier\to\write\win32\paths\this\way'; > > print q{this is ok {

Re: [netlabs #607] [PATCH] COW strings (again)

2002-05-21 Thread Steve Fink
On Tue, May 21, 2002 at 01:38:45PM -0400, Dan Sugalski wrote: > At 5:27 PM + 5/21/02, "Peter Gibbs" (via RT) wrote: > > > I think I'd like these differently. STRING is a subclass of Buffer, > >> and the bufstart and buflen fields in Buffers point to the actual > >> start of memory and length o

Re: Backslashes

2002-05-21 Thread Buddha Buck
At 01:10 PM 05-21-2002 -0400, Aaron Sherman wrote: >On Tue, 2002-05-21 at 12:57, Michael G Schwern wrote: > > > Here's an easier one: backslash followed by the delimiter is that thing. > > Everything else is literal. > > > > print 'c:\it\'s\easier\to\write\win32\paths\this\way'; > > print

Re: [netlabs #607] [PATCH] COW strings (again)

2002-05-21 Thread Dan Sugalski
At 5:27 PM + 5/21/02, "Peter Gibbs" (via RT) wrote: > > I think I'd like these differently. STRING is a subclass of Buffer, >> and the bufstart and buflen fields in Buffers point to the actual >> start of memory and length of allocated data. I'd rather keep it that >> way, and have the 're

Re: [netlabs #607] [PATCH] COW strings (again)

2002-05-21 Thread Peter Gibbs
> I think I'd like these differently. STRING is a subclass of Buffer, > and the bufstart and buflen fields in Buffers point to the actual > start of memory and length of allocated data. I'd rather keep it that > way, and have the 'real' string length and string start be extra > fields in the STRIN

Re: Backslashes

2002-05-21 Thread Aaron Sherman
On Tue, 2002-05-21 at 12:57, Michael G Schwern wrote: > Here's an easier one: backslash followed by the delimiter is that thing. > Everything else is literal. > > print 'c:\it\'s\easier\to\write\win32\paths\this\way'; > print q{this is ok { and so is \} } C:\this }; I desire you print y

Re: Accessor methods ?

2002-05-21 Thread David Wheeler
On 5/21/02 9:56 AM, "Aaron Sherman" <[EMAIL PROTECTED]> claimed: > I guess the run-time checks will be required, and inlining of small > chunks of code will never really be all that useful (as you cannot rip > open that scope and optimize the whole context). I think that a number of these issues

Re: Backslashes

2002-05-21 Thread Michael G Schwern
On Tue, May 21, 2002 at 11:03:42AM +0100, Nicholas Clark wrote: > I believe that the correct rule for single quote context in perl should have > been that backslash followed by anything is that thing. That leaves Win32 users stuck in the same rut as now: print 'c:\\it\'s\\going\\to\\be\\hard

Re: Accessor methods ?

2002-05-21 Thread Aaron Sherman
On Mon, 2002-05-20 at 00:27, Larry Wall wrote: > Aaron Sherman writes: > : > Alternately, I think we should be able to mark subs as 'final' or 'inline' > : > to indicate our guarantee that they won't be modified. Of course, it'll > : > conflict with auto memoizing or auto currying modules that'd w

Re: [netlabs #607] [PATCH] COW strings (again)

2002-05-21 Thread Dan Sugalski
At 4:14 PM + 5/21/02, "Peter Gibbs" (via RT) wrote: >* New field 'buffer' in STRING points to the start of the allocated buffer. >I have put this field immediately after the Buffer fields, in case we want >to create a generic subclass of Buffer with the same functionality >* The existing 'bufs

Re: Vtable Methods in Parrot

2002-05-21 Thread Dan Sugalski
At 6:23 PM -0300 5/20/02, Daniel Grunblatt wrote: >On Mon, 20 May 2002, David M. Lloyd wrote: > >> What about subroutines? Are bsr & jsr the way it's gonna be or is there >> a rework in the works? > >docs/pdds/pdd03_calling_conventions.pod :) Ans I think I need to get that tidied up soon, as t

Re: GC vtable method limitations?

2002-05-21 Thread Dan Sugalski
At 3:34 PM -0400 5/20/02, Mike Lambert wrote: > > At 12:06 AM -0400 5/19/02, Mike Lambert wrote: >> >Is there a plan to make a freed method for when pmc header gets put >back >> >onto the free list? (This would require we call this method on all >pmc's >> >before moving anything to the freelis

Re: Non-vtable functionality on PMCs?

2002-05-21 Thread Dan Sugalski
At 8:44 AM -0500 5/20/02, brian wheeler wrote: >I've been trying to catch up with parrot again (darn it, babies take >more time than I thought :) and I've come up with a question... how do >you do "other" things to PMCs that aren't normal ops? Call methods on the perl-level classes that map to th

Re: Dynamic register frames?

2002-05-21 Thread Dan Sugalski
At 2:51 AM -0400 5/20/02, Mike Lambert wrote: >Now, my proposal is simply that instead of hardcoding to 32 elements, we >allow the function to determine the number of elements in each register >type. This gives us: I actually considered that at one point, back at the beginning. I went with the f

[netlabs #607] [PATCH] COW strings (again)

2002-05-21 Thread Peter Gibbs
# New Ticket Created by "Peter Gibbs" # Please include the string: [netlabs #607] # in the subject line of all future correspondence about this issue. # http://bugs6.perl.org/rt2/Ticket/Display.html?id=607 > Attached is another patch to implement copy-on-write strings. Summary of changes *