From: bill@triangle.cs.uofs.edu (Bill Gunshannon)
Subject: Re: Drop C/C++ better sooner than later
Date: 28 Feb 2001 16:55:28 GMT [thread overview]
Message-ID: <97jai0$klq$1@info.cs.uofs.edu> (raw)
In-Reply-To: rdeininger-2802010958090001@user-2ive673.dialup.mindspring.com
In article <rdeininger-2802010958090001@user-2ive673.dialup.mindspring.com>,
rdeininger@mindspring.com (Robert Deininger) writes:
|>
|>
|> Sounds like a bit of Ada advocacy. :-)
Sorry, you won't find much of that from me. :-)
I don't particularly like the language and I've been involved with
peripherally since before the first validated compiler.
|>
|> In no way did Dyjkstra convince everybody.
Tongue must have been too firmly planted in cheek on the above.
Dijkstra never convinced me.
|>
|> There are times when GOTO is just what's needed. The example I see most
|> often is coding a state machine. For an eloquent defense of GOTO, look in
|> the comp.lang.ada archives for Robert Dewer's posts on the topic.
This surprises me. If Dewer is who I think he is, he was one of
Ada's strongest advocates and GOTO is very much contrary to the
paradigm put forward by it's developers.
|>
|> Using ":=" for assignment had quite a lot of precident at the time C was
|> developed. Starting a new convention was unnecessary. Way too late to
|> change it now.
Really?? With C and Pascal being pretty much parallel developments
(both starting around 1971 somewhere) I assume oyu must mean something
earlier. Of course, it could have been worse. PL/1 used the same
symbol "=" for both assignment and comparison. Maybe you mean Algol?
But the use there wasn't particularly clear or unambiguous, if I
remember correctly.
|>
|> Though you have supported the use of Ada in a classroom,
Where did I say I supported it's use inthe classroom?? My preference
for a first programming language remains Pascal. After all, that was
the intended use of it's creator. We're back to that "the right tool
for the job" idea again.
|> you're convincing
|> me you hardly know it yourself.
While I have not done any million line projects with it, I know it well
enough to program in it when required. And to help debug others Ada code.
|> Ada was IN NO WAY intended to fit all
|> problem spaces. Two of the big design demands were for embedded
|> programming, and for a language that scales well to very large programs.
Well, I was in data processing in the Military when it was first being
developed and we were being told that all DOD systems would have to be
eventually, rewritten in Ada. Luckily, that never happened. DOD had
every intention of impossing Ada on everyone under their domain. How
else do you think they justified the millions (billions?) of dollars
wasted on the project??
|>
|> Your remarks about "bloated monster" and "not practical for small
|> machines" are nonsense. A number of languages are significantly bigger
|> than Ada. And it has been implemented on a number of small systems. Some
|> of the first compilers _were_ dogs, however.
I guess your concept of a "small system" differs from mine. The smallest
system I have ever seen a validated Ada compiler (and remember, there are
no subsets of Ada!!) on was a VAX. At the time I saw my first Ada compiler
I was doing a lot of work on PDP-11's, Z80 and M68000 microcomputers and
even a Univac 1100. I know there was never an Ada compiler for the first
three and I never saw one for the Univac.
|>
|> Ada _is_ a lot bigger than C, but it does much more.
Actually, it does exactly the same thing. It just does it differnt.
One of the most common ada compilers is GNAT which is just a different
parser front end on a C compiler. I guess the biggest question is,
"Does the language provide enough advantage to warrant the extra
resources it requires?" Some of us say no.
|> From the
|> programmer's point of view, you don't have to learn parts you don't need.
Which is true of any language.
|> There is a fairly concise C-like subset (with somewhat fuzzy boundaries)
No, according to the proponent agency, there are no subsets.
|> for example. Of course the compiler implementor has to deal with the
|> whole language. Ada is also more specific than C -- the implementor has
|> much less discretion in how a feature must behave.
Not true, and this is one of my main complaints. Look up tasking. It
is totally implementor dependant. Two "parallel" tasks need not run in
parallel and may in fact run asynchronously under some implementations.
Which enters into a whole other argument about wether or not tasking
belongs in a language at all, as opposed to being a function of the OS.
|>
|> I don't think this is quite the right description of Ada. It is designed
|> to let the compiler catch a lot of mistakes, so they never get into the
|> running program. This may have a side effect of making programmers a bit
|> more careful, thus reducing mistakes.
Experience has shown that it has quite the opposite effect. Why desk check
your code when you can rely on the compiler to do it for you. The result
is sloppier code that is syntactically correct but with some rather unique
logic errors.
|> > Now I'm confused. What you say above is in complete agreement with what
|> > I have said, as well. Especially in the case of Ada.
|>
|> Well, he can't even spell Ada, so maybe his complaints are second hand? :-)
|>
|> The backdoors in Ada aren't obsure or hard to understand. There was an
|> effort to make use of backdoors (unchecked deallocation, unchecked
|> conversion ...) very explicit and obvious to the reader. And you don't
|> need such things very often in Ada. Most programs never see them. I
|> think they are most often abused by people trying to write C code using
|> Ada syntax. That does lead to horrible code in a hurry.
|>
|> It's also not fair to say that more "backdoors" keep getting added to
|> Ada. It has been quite static in this regard.
|>
This was true of C as well until ANSI got their hands on it.
|> Some of the complaints above apply much more to Pascal than to Ada.
|> Pascal really was too constrained for many purposes, and had some subtle
|> back doors.
Yes, this is a prime example of using the wrong tool for the job. Pascal
was created to "teach" algorithms and data structures. Not to implement
them in the real world. It is, of course, interesting to note that after
seeing this terrible misuse of the language, wirth went back and created
a language specifically to put the ideas he had put forward in Pascal in
a practical and usable form. And thus was Modula born. And we all know
how popular this language became. (he says with tongue planted very firmly
in cheek!) :-)
|> Ada is a descendant of Pascal, but it extends Pascal for
|> useability, and closes some backdoors.
This is one of the biggest things in Ada's favor. (IMHO) Not only did
it keep a lot of this Pascal flavor, it had input from and was developed
by many people who were firmly planted in earlier Pascal development.
|> > This I don't agree with. In most cases, the actual coding is the smallest
|> > part of the project. (at least well designed projects)
|>
|> Agreed.
I'm glad of this. One of the things I constantly lament around here is
how little pre-coding thought goes into most student work and the fact
that this is not seen as a problem worth addressing.
|>
|> > It takes no longer
|> > for an experienced C programmer to code a task in C than it would take an
|> > experienced Ada programmer to do it in Ada. And believe it or not, regardless
|> > of the language used, programmers of the same level of experience will make
|> > an equivalent number of mistakes. It isn't the language that makes the
|> > mistakes.
|>
|> If you spend time reading the Ada literature (or Eiffel, probably others),
|> you will find that this has been measured, and refuted. C really is more
|> error prone. Briefly, you are probably right about speed of initial
|> coding. But not about error rates.
I would dispute this, but as you state in the next line, I think it is
more of a language war thing. Trust me on this one thing. In working
with students, I see really bad programs written in Pascal, Ada, C, C++.
Visual Basic and now even Java.
|>
|> Don't really want to start a language war. I hope it's not too late.
No war intended. While I do most of my work in C (as I work primarily
on Unix Machines and C is very much at home there.) I can do program
in more than a dozen other languages. I believe in the right language
for the job and that 90% of the project preceeds even the choice of
language. The question is, how do you convince enough people to translate
this into practice.
All the best.
bill
--
Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves
bill@cs.scranton.edu | and a sheep voting on what's for dinner.
University of Scranton |
Scranton, Pennsylvania | #include <std.disclaimer.h>
next prev parent reply other threads:[~2001-02-28 16:55 UTC|newest]
Thread overview: 168+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OF5876F951.ACBD5F93-ON032569FC.003E241B@ep-bc.petrobras.com.br>
[not found] ` <87n1baae6s.fsf@prep.synonet.com>
2001-02-25 17:38 ` So what Are we meant to use on the 'desktop' Terry C. Shannon
2001-02-25 19:23 ` David Mathog
2001-02-26 1:18 ` Christof Brass
2001-02-26 1:59 ` Bill Todd
2001-02-26 12:49 ` Larry Kilgallen
2001-02-26 19:09 ` Rick Cadruvi
2001-02-26 20:47 ` Larry Kilgallen
2001-02-26 21:04 ` Bill Gunshannon
2001-02-27 0:07 ` Christof Brass
2001-02-27 1:00 ` Bill Todd
2001-02-27 1:26 ` Drop C/C++ better sooner than later Christof Brass
2001-02-27 2:47 ` Rick Cadruvi
2001-02-27 3:59 ` JF Mezei
[not found] ` <XyEm6.896$be1.355692@paloalto-snr1.gtei.neDistribution: world <wrCvgGxaSLv9@eisner.encompasserve.org>
2001-02-27 21:13 ` Rick Cadruvi
2001-02-27 22:34 ` Christof Brass
2001-02-28 1:36 ` Rick Cadruvi
2001-02-28 13:48 ` LJEB
2001-02-28 16:28 ` Rick Cadruvi
2001-03-01 11:54 ` LJEB
2001-02-28 14:22 ` Bill Gunshannon
2001-02-28 14:33 ` John Reagan
2001-02-28 15:19 ` Jan Vorbrueggen
2001-02-28 16:42 ` Rick Cadruvi
2001-02-28 17:45 ` John Reagan
2001-02-28 14:58 ` Robert Deininger
2001-02-28 15:29 ` Jan Vorbrueggen
2001-02-28 16:55 ` Bill Gunshannon [this message]
2001-02-28 18:05 ` Bob Koehler
2001-03-01 9:07 ` Jan Vorbrueggen
2001-02-28 18:34 ` Larry Kilgallen
2001-02-28 23:10 ` Rick Cadruvi
2001-02-28 19:52 ` Robert Deininger
2001-03-01 14:21 ` Bob Koehler
[not found] ` <KForX+5U$4bOrganization: Encompasserve <ZDsZwRGKoAEm@eisner.encompasserve.org>
2001-03-01 15:16 ` Jan Vorbrueggen
2001-03-01 21:58 ` JF Mezei
2001-03-02 10:26 ` Alan Greig
2001-03-05 10:20 ` Jan Vorbrueggen
2001-02-28 20:19 ` JF Mezei
2001-03-01 13:52 ` Bill Gunshannon
2001-03-01 15:13 ` Jan Vorbrueggen
2001-03-01 16:05 ` Bill Gunshannon
2001-03-01 17:08 ` Robert Deininger
2001-03-01 17:47 ` Rick Cadruvi
2001-03-01 20:36 ` Paul Repacholi
2001-03-01 23:11 ` Christof Brass
2001-03-03 14:54 ` Jan Vorbrueggen
2001-03-06 19:24 ` Bill Gunshannon
2001-03-06 21:53 ` Larry Kilgallen
2001-03-06 22:29 ` David J. Dachtera
2001-03-07 0:33 ` Brian Schenkenberger, VAXman-
2001-03-07 2:53 ` Christof Brass
2001-03-07 3:27 ` Robert Deininger
2001-03-07 14:33 ` Bill Gunshannon
2001-03-07 14:21 ` Jan Vorbrueggen
2001-03-13 7:49 ` Fred Zwarts
2001-03-13 16:12 ` John Reagan
2001-03-01 16:58 ` Robert Deininger
2001-03-01 21:45 ` JF Mezei
2001-03-01 3:40 ` Christof Brass
2001-03-01 5:52 ` Robert Deininger
2001-03-01 3:33 ` Christof Brass
2001-03-01 6:03 ` JF Mezei
2001-03-01 17:11 ` Rick Cadruvi
2001-03-01 23:28 ` Christof Brass
2001-03-01 23:47 ` Rick Cadruvi
2001-03-02 10:45 ` Paul Repacholi
2001-03-02 18:52 ` Rick Cadruvi
2001-03-03 1:42 ` Christof Brass
2001-03-02 1:11 ` Brian Schenkenberger, VAXman-
2001-03-02 5:06 ` Rick Cadruvi
2001-03-02 10:32 ` Brian Schenkenberger, VAXman-
2001-03-06 20:47 ` bob.marcan
2001-02-28 15:03 ` Per Schr�der
2001-02-28 16:50 ` Rick Cadruvi
2001-02-28 17:48 ` Bob Koehler
2001-02-28 18:26 ` Bill Gunshannon
2001-03-01 13:41 ` Bob Koehler
2001-02-28 18:22 ` Larry Kilgallen
2001-03-01 1:39 ` Christof Brass
2001-03-01 9:38 ` Jan Vorbrueggen
2001-03-01 17:20 ` Rick Cadruvi
2001-03-01 23:38 ` Christof Brass
2001-02-28 12:39 ` Bill Gunshannon
2001-02-27 23:00 ` Larry Kilgallen
2001-02-28 0:12 ` Brian Schenkenberger, VAXman-
2001-02-28 13:56 ` Bill Gunshannon
2001-02-28 15:11 ` Jan Vorbrueggen
2001-02-28 16:31 ` Rick Cadruvi
2001-02-28 2:14 ` Larry Kilgallen
2001-02-28 2:46 ` Bill Todd
2001-03-01 2:12 ` Christof Brass
[not found] ` <XyEm6.896$be1.355692@paloalto-snr1.gtei.neDistribution: world <5ABc4wgf5wcs@eisner.encompasserve.org>
2001-02-28 4:46 ` Rick Cadruvi
2001-02-28 6:28 ` Robert Deininger
2001-02-28 7:16 ` JF Mezei
2001-02-28 16:05 ` Rick Cadruvi
2001-03-01 2:46 ` Christof Brass
2001-03-01 2:25 ` Christof Brass
2001-02-28 7:08 ` JF Mezei
2001-02-28 8:52 ` Jan Vorbrueggen
2001-03-01 2:47 ` Christof Brass
2001-03-01 6:37 ` Nikita V. Belenki
2001-03-01 23:40 ` Christof Brass
2001-03-03 10:18 ` Nikita V. Belenki
2001-03-03 10:40 ` Christof Brass
2001-03-12 3:29 ` Mark Garrett
2001-03-12 4:05 ` Bob Willard
2001-03-12 8:02 ` Paul Repacholi
2001-03-15 14:13 ` Alan Greig
2001-02-28 13:39 ` Bob Koehler
2001-02-28 16:11 ` Rick Cadruvi
2001-02-28 20:00 ` JF Mezei
2001-03-01 9:16 ` Jan Vorbrueggen
2001-03-01 23:42 ` Christof Brass
2001-03-01 13:48 ` Bill Gunshannon
2001-03-01 23:18 ` John Santos
2001-02-28 18:11 ` Larry Kilgallen
2001-02-28 20:01 ` Robert Deininger
2001-03-01 2:18 ` Christof Brass
[not found] ` <9hjmlkwyghte@eisner.encompasserve.org>
2001-02-28 17:59 ` Bob Koehler
2001-02-28 18:31 ` Bill Gunshannon
2001-03-01 15:40 ` Bob Koehler
2001-03-01 18:10 ` Larry Kilgallen
[not found] ` <97Organization: Encompasserve <Y$aqbQdRtYFw@eisner.encompasserve.org>
2001-03-01 17:38 ` Rick Cadruvi
2001-03-01 18:53 ` Nikita V. Belenki
2001-03-02 13:13 ` Bob Koehler
2001-03-02 13:24 ` Bob Koehler
2001-02-28 23:08 ` Larry Kilgallen
2001-03-01 13:50 ` Bob Koehler
2001-03-01 13:54 ` Bob Koehler
2001-03-01 15:12 ` Jan Vorbrueggen
2001-02-28 8:46 ` Jan Vorbrueggen
2001-03-01 1:56 ` Christof Brass
[not found] ` <XyEm6.896$be1.355692@paloalto-snr1.gtei.neDistribution: world <009F8479.B6EC89DC@SendSpamHere.ORG>
2001-03-01 1:46 ` Christof Brass
2001-02-26 12:17 ` So what Are we meant to use on the 'desktop' Alan Greig
2001-02-25 19:51 ` VMS wanted list. Was: " Paul Repacholi
2001-02-25 20:45 ` VMS wanted list Terry C. Shannon
2001-02-25 22:44 ` Howard S Shubs
2001-02-26 0:37 ` Terry C. Shannon
2001-02-26 1:19 ` Eric Smith
2001-02-26 4:13 ` Howard S Shubs
2001-02-26 5:27 ` Terry C. Shannon
2001-02-26 6:38 ` Howard S Shubs
2001-02-27 0:12 ` Christof Brass
2001-02-27 3:22 ` Terry C. Shannon
2001-02-27 22:37 ` Christof Brass
2001-02-27 11:15 ` Brian Schenkenberger, VAXman-
2001-02-27 22:37 ` Christof Brass
2001-02-28 2:12 ` Bob Kaplow
[not found] ` <3A9AF0DB.Organization: What, me, organized? <rUslzcAE$7$5@eisner.encompasserve.org>
2001-03-12 2:49 ` Mark Garrett
2001-03-12 13:52 ` Bob Kaplow
2001-02-26 15:35 ` Tim Llewellyn
2001-02-26 23:51 ` Terry C. Shannon
2001-02-27 0:15 ` Christof Brass
2001-02-26 11:27 ` Brian Schenkenberger, VAXman-
2001-02-27 21:43 ` Terry C Shannon
2001-02-27 22:07 ` Brian Schenkenberger, VAXman-
2001-02-26 19:16 ` Rick Cadruvi
2001-02-26 0:48 ` Christof Brass
2001-02-26 12:43 ` Larry Kilgallen
2001-02-26 13:02 ` Terry C. Shannon
2001-02-26 15:48 ` Jan Vorbrueggen
2001-02-26 16:47 ` VMS wanted list. Was: So what Are we meant to use on the 'desktop' Hoff Hoffman
2001-02-26 21:01 ` Bill Gunshannon
2001-02-27 0:19 ` Christof Brass
[not found] ` <97giah$jo3@gap.cco.caltech.edu>
2001-02-27 21:19 ` Rick Cadruvi
2001-02-27 22:44 ` Christof Brass
2001-02-28 16:37 ` VMS wanted list. Take II Paul Repacholi
2001-03-01 4:17 ` Christof Brass
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox