home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!olivea!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!tmb
- From: tmb@arolla.idiap.ch (Thomas M. Breuel)
- Newsgroups: comp.lang.c++
- Subject: Re: feedback wanted on appropriate OOPL
- Message-ID: <TMB.93Jan12173358@arolla.idiap.ch>
- Date: 13 Jan 93 01:33:58 GMT
- References: <726278910snx@trmphrst.demon.co.uk> <rmartin.726674455@thor>
- <TMB.93Jan10170408@arolla.idiap.ch> <1993Jan10.220917.22879@netcom.com>
- <TMB.93Jan11010738@arolla.idiap.ch> <rmartin.726795534@thor>
- Reply-To: tmb@idiap.ch
- Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
- Perceptive)
- Lines: 29
- NNTP-Posting-Host: arolla.idiap.ch
- In-reply-to: rmartin@thor.Rational.COM's message of Mon, 11 Jan 1993 23:38:54 GMT
-
- In article <rmartin.726795534@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
-
- |C++ will either adapt by mandating more runtime
- |checks (integer overflow, pointer checks, garbage collection),
-
- Probably through the agency of class libraries which provide these
- runtime checks transparently.
-
- Certainly vector bounds checking and arithmetic exception testing can
- all be encapsulated within classes.
-
- Sure they can. However...
-
- This I doubt. I think it is more that some runtime features are
- expensive, period. Languages that support them, have made a different
- tradeoff than that made in C++, and have sacrificed something else
- (probably speed) thereby.
-
- ... if you do a little experimentation, I'm sure you'll find, as
- others have, that providing arithmetic exceptions, array bounds
- checking, and garbage collection "encapsulated in classes" is much
- less efficient than if they are compiler built-ins (not to mention
- issues of compatibility and portability).
-
- That is, in C++, you get "unsafe, but fast", and "safe, but slow". You
- don't get "safe, but moderately fast", which is what I think most
- people care about.
-
- Thomas.
-