From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Safety of the Booch Ada 95 Components
Date: 1999/12/13
Date: 1999-12-13T00:00:00+00:00 [thread overview]
Message-ID: <x7vwvqi38n9.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: Yk354.42$tb.10677@news.wenet.net
xanthian@well.com (Kent Paul Dolan) writes:
> Robert Dewar <robert_dewar@my-deja.com> wrote:
> > herwin@gmu.edu (Harry Erwin) wrote:
> >> A deep copy of a pointer data structure may require more
> >> memory than is available.
>
> >A naive copy may have that characteristic, but it is always
> >possible on modern machines to do such a copy with no additional
> >storage. It just takes a bit of cleverness. Remember that every
> >pointer has at least two spare bits.
>
> This one sets alarm bells ringing like crazy. I was a user of
> AmigaBASIC, whose developers assumed that the 24 bits in use of 32 bit
> pointers they saw when the machine in an early OS rev would be the law
> forever, ignored the developer manuals warnings to the contrary, used
> the other 8 bits for string lengths or some such, in a petty search for
> "efficiency" at the expense of clean coding, and had their software die
> a horrible death when the OS was upgraded within a couple of years to
> use all 32 bits of a pointer.
I suspect Robert was thinking of the low-order 2 bits (on the
assumption that malloc() always returns something longword-aligned. I
rather thought it was often 16-byte-aligned??).
next prev parent reply other threads:[~1999-12-13 0:00 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-10 0:00 Safety of the Booch Ada 95 Components Harry Erwin
1999-12-10 0:00 ` Simon Wright
1999-12-12 0:00 ` Simon Wright
1999-12-12 0:00 ` Matthew Heaney
1999-12-12 0:00 ` Harry Erwin
1999-12-13 0:00 ` Simon Wright
1999-12-10 0:00 ` Matthew Heaney
1999-12-10 0:00 ` Harry Erwin
1999-12-12 0:00 ` Simon Wright
1999-12-12 0:00 ` Harry Erwin
1999-12-13 0:00 ` Simon Wright
1999-12-10 0:00 ` Hyman Rosen
1999-12-10 0:00 ` Harry Erwin
1999-12-10 0:00 ` Matthew Heaney
1999-12-11 0:00 ` Harry Erwin
1999-12-12 0:00 ` Robert Dewar
1999-12-12 0:00 ` Harry Erwin
1999-12-13 0:00 ` Kent Paul Dolan
1999-12-13 0:00 ` Robert I. Eachus
1999-12-13 0:00 ` Ted Dennison
1999-12-13 0:00 ` Simon Wright [this message]
1999-12-13 0:00 ` Hyman Rosen
1999-12-13 0:00 ` Robert I. Eachus
1999-12-14 0:00 ` Simon Wright
1999-12-15 0:00 ` Mats Weber
1999-12-17 0:00 ` Simon Wright
1999-12-15 0:00 ` Harry Erwin
1999-12-14 0:00 ` Matthew Heaney
1999-12-13 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox