home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!ftpbox!mothost!lmpsbbs!mcil.comm.mot.com!davidk
- From: davidk@mcil.comm.mot.com (David Kramer)
- Subject: Re: Review of "Ada & C++: A Business Case Analysis
- Organization: Motorola Communications Israel Ltd., Tel Aviv
- Distribution: usa
- Date: Wed, 29 Jul 1992 07:44:34 GMT
- Message-ID: <1992Jul29.074434.21817@lmpsbbs.comm.mot.com>
- References: <2329@nic.cerf.net> <1992Jul28.213215.25806@fcom.cc.utah.edu>
- Sender: davidk@comm.mot.com (David Kramer)
- Nntp-Posting-Host: 145.9.71.22
- Lines: 50
-
- In article <1992Jul28.213215.25806@fcom.cc.utah.edu>, val@news.ccutah.edu (Val Kartchner) writes:
- |> jonesm@nic.cerf.net (Matthew Jones) writes:
- |> : Recently I got a copy of:
- |> : Overiew of U.S. Air Force Report
- |> : Ada and C++: A Business Case Analysis
- |> : Form G75-1191
- |> : AdaCPLUS.HLP
- |> :
- |> : This paper supposedly compares Ada and C++ and of course find Ada
- |> : to be superior. I found this paper to be filled with errors and
- |> : very questionable opinion. Here are a few comments
- |>
- |> Here are a few more comments:
-
- <...stuff deleted...>
-
- |> 3. Did you notice in the summary that C++ does better in compile-time and
- |> run-time speed, but Ada is better for real-time? Aren't run-time speed and
- |> real-time performance the same thing? I wonder what other glaring errors
- |> were made in the reports that didn't make it through to the summary.
-
- I didn't read the referenced report so I can't comment on it, but the answer
- to your (retorical?) question is no. There is alot more to real-time than just run
- time speed. In fact 'runtime speed' if it means the number of assembly
- instructions that the code compiles to (which is the only way the 2 languages
- can be compared) plays a very small role in the big picture of real-time
- performance.
-
- For one thing, Ada has a realtime paradigm built into the language. You can't
- have a realtime application without some means of interprocess communication.
- There is no commercially available C++ compiler today that I know of (and I've
- been looking) that allows for interprocess communication (by that I mean the
- ability to pass messages and object pointers between two C++ processes). So
- unless you modify the compiler or go through great pains to write your own
- mechanisms you cannot use C++ for a realtime application!
-
- Also, for most serious real-time applications the runtime constaint checking
- and exception handling that Ada provides is crucial in providing a reliable
- system that is able to respond well to unpredictable and unexpected situations.
- Yes, C++ will provide exception handling in the future, but today that is not
- part of the language, and even when it will be, all runtime checks will have to
- be explicit in the code.
-
- Finally, the C philosphy of 'give the programmer freedom at the expense of
- safety because he knows what he's doing' is continued to a great degree in
- C++ as well. While this might be acceptable in many applications, most real-time
- applications cannot afford this luxury.
-
- ---------------
- [ David Kramer INTERNET: davidk@mcil.comm.mot.com ]
-