Re: PDD 4, version 1.2.

2001-07-03 Thread Dan Sugalski
At 04:28 PM 7/3/2001 +0100, Dave Mitchell wrote: >By the way, the _Garbage Collection_ book is very worthy, but like >Neitsche, "it gets a bit boring after a while." [*] Truer words were never said. The table of contents could almost read: . . . Chapter 6: Same as chapter 5, only different Chapt

Re: PDD 4, version 1.2.

2001-07-03 Thread Dave Mitchell
Graham Barr <[EMAIL PROTECTED]> wrote: > Ouch. I have quite often had applications that would use several hundred MB > now. If I would need double that, then that is going to hurt. I am not > familiar with copying collector GC, does anyone have a pointer to any > papers etc. The basic operation o

RE: PDD 4, version 1.2.

2001-07-03 Thread NeonEdge
Here's a reference to the Bartlett 'mostly-copying' GC collector. ftp://gatekeeper.dec.com/pub/DEC/WRL/research-reports/WRL-TR-88.2.pdf Hans Boehm also has a decent GC reference page with links to Bartlett's, but his GC is mark/sweep. http://www.hpl.hp.com/personal/Hans_Boehm/gc/index.html Grant M

Re: PDD 4, version 1.2.

2001-07-03 Thread Dan Sugalski
At 03:18 PM 7/3/2001 +0100, Graham Barr wrote: >On Tue, Jul 03, 2001 at 10:15:02AM -0400, Uri Guttman wrote: > > > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: > > > > DS> We're going to use a copying collector. When the string gets > > DS> copied as part of a compaction run things'll

Re: PDD 4, version 1.2.

2001-07-03 Thread Dan Sugalski
At 10:15 AM 7/3/2001 -0400, Uri Guttman wrote: > > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: > > DS> We're going to use a copying collector. When the string gets > DS> copied as part of a compaction run things'll get cleaned up > DS> appropriately. (Not that there's really any cle

Re: PDD 4, version 1.2.

2001-07-03 Thread Graham Barr
On Tue, Jul 03, 2001 at 10:15:02AM -0400, Uri Guttman wrote: > > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: > > DS> We're going to use a copying collector. When the string gets > DS> copied as part of a compaction run things'll get cleaned up > DS> appropriately. (Not that there's

Re: PDD 4, version 1.2.

2001-07-03 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> We're going to use a copying collector. When the string gets DS> copied as part of a compaction run things'll get cleaned up DS> appropriately. (Not that there's really any cleanup to do in that DS> case) Granted the destination s

Re: PDD 4, version 1.2.

2001-07-03 Thread Dan Sugalski
At 06:16 PM 7/2/2001 -0400, Uri Guttman wrote: > > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: > > DS> At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: > >> I for one use s/^...// quite often in the knowledge that it is > optimized to > >> just move a pointer and not cause a copy of

Re: PDD 4, version 1.2.

2001-07-02 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: >> I for one use s/^...// quite often in the knowledge that it is optimized to >> just move a pointer and not cause a copy of the string. DS> We'll still be doing that. (The leftover

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 09:19 PM 7/2/2001 +0100, Graham Barr wrote: >On Mon, Jul 02, 2001 at 04:12:31PM -0400, Dan Sugalski wrote: > > At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: > > >On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: > > > > At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: > > > > >On Mo

Re: PDD 4, version 1.2.

2001-07-02 Thread Graham Barr
On Mon, Jul 02, 2001 at 04:12:31PM -0400, Dan Sugalski wrote: > At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: > >On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: > > > At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: > > > >On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote:

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: >On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: > > At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: > > >On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote: > > > > >what about starting offset? that is used now to shorten a st

Re: PDD 4, version 1.2.

2001-07-02 Thread Graham Barr
On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: > At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: > >On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote: > > > >what about starting offset? that is used now to shorten a string from > > > >the left side. > > > > > > D'oh! In.

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: >On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote: > > >what about starting offset? that is used now to shorten a string from > > >the left side. > > > > D'oh! In. Out goes the unused. > >Whoa there. Do we still actually want to do this?

Re: PDD 4, version 1.2.

2001-07-02 Thread Simon Cozens
On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote: > >what about starting offset? that is used now to shorten a string from > >the left side. > > D'oh! In. Out goes the unused. Whoa there. Do we still actually want to do this? It's unclear whether or not it's actually a net win. --

Re: PDD 4, version 1.2.

2001-07-02 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: >> Rationale: it burns my eyes to have a mix of names with and >> without underscores. DS> And it means no shift key needed. from too many years of typing -> and foo_bar, i have my emacs map _ to - and vise versa. so i can type foo_b

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 02:48 PM 7/2/2001 -0400, Uri Guttman wrote: > > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: [Typos and dropped phrases snipped] Fixed, thanks. >what about starting offset? that is used now to shorten a string from >the left side. D'oh! In. Out goes the unused.

Re: PDD 4, version 1.2.

2001-07-02 Thread Dan Sugalski
At 01:53 PM 7/2/2001 -0500, Jarkko Hietaniemi wrote: >Good thinking to leave space for future expansion. (A UV is >guaranteed to be enough to hold a pointer, right?) Yes, but we just lost it to the starting offset. > > DS> } > >Rationale: it burns my eyes to have a mix of names with and >wi

Re: PDD 4, version 1.2.

2001-07-02 Thread Jarkko Hietaniemi
Silly stylistic nit: > DS> struct perl_string { > DS> void *string_buffer; buffer > DS> UV allocated; > DS> UV byte_length; bytes > DS> UV flags; > DS> UV character_length; characters > DS> UV encoding; > DS> UV type; > DS> UV unused; Goo

Re: PDD 4, version 1.2.

2001-07-02 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> The string header format has changed some to allow for type DS> tagging. The flags infor for strings has changed as well. ^ DS> =head1 DESCRIPTION DS> This PDD details the primitive datatypes that th