From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-28 10:39:50 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.mesh.ad.jp!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later Message-ID: References: <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <3A9C2B88.8032D829@infopuls.com> <97j1jq$g00$1@info.cs.uofs.edu> <97jai0$klq$1@info.cs.uofs.edu> Distribution: world Organization: LJK Software Date: 28 Feb 2001 13:34:55 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 983385298 216.44.122.34 (Wed, 28 Feb 2001 18:34:58 GMT) NNTP-Posting-Date: Wed, 28 Feb 2001 18:34:58 GMT Xref: supernews.google.com comp.os.vms:20563 comp.sys.dec:2929 In article <97jai0$klq$1@info.cs.uofs.edu>, bill@triangle.cs.uofs.edu (Bill Gunshannon) writes: > In article , > 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. Robert Dewar seems to take particular delight in showing non-kneejerk reactions. As a compiler vendor he hears lots of requirements, above and beyond his personal experience. Indeed state machines are one of his most frequent examples for "never say 'never'". > 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. But those using Ada to _target_ small systems are cross-compiling from something larger (like a VAX :-). But many are also doing so from a Windows machine. > |> 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. Tasks must conform to synchronization rules of the language, and as you say they are free from there on out. But tasking is _critical_ for code that is to be portable between operating systems. > |> 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. That has not been my experience. I find I am more free to deal with logic when the compiler is detecting the spelling errors. > |> > 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. I don't think the issue is the number of mistakes made. I think it is the number of mistakes made that are not caught at compile-time. That is the second-cheapest place to catch errors (the cheapest being design-time, but of course the truly incompetent skip that step :-). ============================================================================== Great Inventors of our time: Al Gore -> Internet; Sun Microsystems -> Clusters ==============================================================================