comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Pb with use of redefined "=" operator
Date: 1998/11/09
Date: 1998-11-09T00:00:00+00:00	[thread overview]
Message-ID: <wccg1bssf6n.fsf@world.std.com> (raw)
In-Reply-To: m3btmm4eq0.fsf@mheaney.ni.net

Matthew Heaney <matthew_heaney@acm.org> writes:

> Why would anyone complain about using a component that always works?

Because it's too slow?

Maybe it's no big deal for your stack example -- maybe the stack needs
100 words, and the tag field makes it 101.  But suppose the abstraction
were "point-in-a-plane" or "complex", where the thing needs two words of
useful data -- in that case, adding a tag field is a huge space
inefficiency.  And don't tell me memory is cheap -- it takes time to
initialize it, and it can wreck your caching behavior, which costs time,
and time is *not* cheap.

> We are not philosophers debating morality -- we are systems builders.
> Our goal is to build correct systems, by whatever means necessary.
> 
> If using a language feature to make an abstraction work is "gratuitous,"
> or seems like a "trick," then that is a telling observation of the
> language itself!

Yes, the language has a flaw.

- Bob
-- 
Change robert to bob to get my real email address.  Sorry.




  reply	other threads:[~1998-11-09  0:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-03  0:00 Pb with use of redefined "=" operator Fran�oise & Herv� BITTEUR
1998-11-04  0:00 ` Matthew Heaney
1998-11-04  0:00   ` Mats Weber
1998-11-05  0:00     ` Matthew Heaney
1998-11-05  0:00       ` Mats Weber
1998-11-05  0:00         ` Matthew Heaney
1998-11-09  0:00           ` Robert A Duff [this message]
1998-11-09  0:00             ` Brian Rogoff
1998-11-10  0:00               ` Robert A Duff
1998-11-10  0:00             ` Robert I. Eachus
1998-11-05  0:00       ` dewarr
1998-11-05  0:00         ` Matthew Heaney
1998-11-06  0:00           ` dewarr
1998-11-09  0:00             ` Robert A Duff
1998-11-10  0:00               ` dennison
1998-11-10  0:00                 ` Robert A Duff
1998-11-04  0:00 ` Mats Weber
1998-11-04  0:00   ` Fran�oise & Herv� BITTEUR
1998-11-04  0:00 ` dewarr
1998-11-04  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