From: rdeininger@mindspring.com (Robert Deininger)
Subject: Re: Drop C/C++ better sooner than later
Date: Wed, 28 Feb 2001 14:52:48 -0500 [thread overview]
Message-ID: <rdeininger-2802011452480001@user-2ivec5g.dialup.mindspring.com> (raw)
In-Reply-To: 97jai0$klq$1@info.cs.uofs.edu
In article <97jai0$klq$1@info.cs.uofs.edu>, bill@cs.scranton.edu wrote:
> In article <rdeininger-2802010958090001@user-2ive673.dialup.mindspring.com>,
> rdeininger@mindspring.com (Robert Deininger) writes:
> |>
> |> 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.
First, I mispelled his name. Dewar looks better to me at the moment.
Yes, I'm sure it's the same fellow you're thinking of. Big Ada advocate,
principal at ACT -- and believer in GOTO at appropriate times.
>
> |>
> |> 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.
Yes, IIRC, Pascal borrowed it from Algol.
> |> 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.
I meant supported, as in "facilitated the use of", not supported, and in
"advocated". Perhaps I misunderstood your role.
> |> 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??
It wasn't money wasted... many projects were successfully completed and
are still alive using Ada. It _was_ mandated for a while, but now there
are more "language-neutral" requirements in place. Before Ada, there were
_many_ DOD languages, and that was a big problem Ada was meant to solve.
Ada did have problems at first, and the heavy-handed mandate I think
caused a backlash that's still alive.
> |> 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.
Many of those systems were at or near EOL when Ada got up to speed. I
suspect some of them were Ada targets, but not developement platforms.
Embedded programming pretty much requires targeting small, almost bare,
hardware systems.
> |> 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.
GNAT is NOT an Ada parser stuck on a C compiler. You have gotten out of touch.
A few of the things that Ada has, that C lacks:
Support for concurrency (tasks)
Generics
Packages
...
Ada is not the language it was 15 or 20 years ago.
>
> |> 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.
I'm not talking about formal subsets, I'm talking about functional
subsets. For example, if you don't need concurrency, you can just ignore
the tasking part.
With a slightly different terminology, Ada 95 does have Annexes, which are
groups of optional extensions for specific problem domains. An
implementor can omit a whole annex, or include all of it.
> |> 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.
The language requirements explicitly called for tasking at the language
level, hopefull to make programs more platform-neutral. The implementor's
discretion in this case was necessary to get implementations on many
platforms. In practice, you get one or more of the mechanisms the
underlying OS supports. There are many multi-task problems where the
details of the tasking model don't matter. Those can be implemented in
Ada without any platform-specific pragmas.
On the other hand, Ada does _not_ give the implementor any wiggle room on
how to evaluate a multi-part conditional expression.
A number of things in C are explicitly platform-dependent, i.e. the result
of a chunk of code is supposed to depend on the platform. Ada aims the
other way, but often gives you a way to specify low-level details in a
platform-neutral way when you need to. It tends to make the dependent
part more visible.
> |> 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.
Not in my (fairly limited) experience, and not according to a lot of big
Ada shops.
Though I think sloppy coding is not sufficiently discouraged in the
schools these days, in any language.
1. It's best not to make the mistake in the first place.
2. Next best is to have the compiler catch the mistake.
3. Next best is to detect the mistake at run time.
4. Worst is to not detect the mistake at all, and generate wrong results.
My main claim is that Ada is much better at number 2 than C is. The
compiler has much more information at it's fingertips, so this should not
be too surprising. It seems to be well confirmed in practice.
Number 1 is probably largely cultural. Good programmers are better at
number 1 than are bad programmers.
> |> > 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.
I still hope I'm not contributing to a flame war.
--
Robert Deininger
rdeininger@mindspring.com
next prev parent reply other threads:[~2001-02-28 19:52 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
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 [this message]
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 <009F8479.B6EC89DC@SendSpamHere.ORG>
2001-03-01 1:46 ` 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
[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
[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-01 18:10 ` Larry Kilgallen
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-03-01 2:18 ` Christof Brass
2001-02-28 8:46 ` Jan Vorbrueggen
2001-03-01 1:56 ` 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