From: dg@montage.com (David Gould)
Subject: Re: Final kick at the "Merced Guessing Game"
Date: 1997/10/10 [thread overview]
Message-ID: <61kp41$dob@news.informix.com> (raw)
In-Reply-To: EHrwv9.2w3@world.std.com
In article <EHrwv9.2w3@world.std.com>,
Joseph H Allen <jhallen@world.std.com> wrote:
>In article <61ho3v$3m0$1@goanna.cs.rmit.edu.au>,
>Richard A. O'Keefe <ok@goanna.cs.rmit.edu.au> wrote:
>> nice features of older languages and C9x...
>
>The real question is why has C caught on in such a big way when other
>more powerful languages have not? There are several answers:
[many good reasons deleted]
I am surprised that no-one has mentioned what may be the most important
reason for the success of C: "The C Programming Language" by messrs K & R.
An excellent book, far better than the language described. A religious text
almost. After reading it, especially early in a career, one is convinced that
"C" not only makes sense, but is even "the right way".
Think about how thinks might have turned out had this book never existed.
The above is a bit tongue in cheek, but twenty years in computing has lead
me to believe that software success owes far more to cultural factors than to
technical merit. This applies to "users" and "corporate IS management" as the
success of MS-DOS, Windows, and now NT amply illustrates. It seems to apply
to programmers or "software engineers" perhaps even more strongly.
The C vs anything else debate often illustrates this. There are a few
central elements to this argument that are common whenever it appears. The
interesting thing is that the same assertions continue to be made persistantly
even in the face evidence to the contrary, and even when they explicitly
contradict each other.
- C is "close to the machine" and somehow, this is "efficient" or good.
Even after proof that say Fortran is more efficient for some problems,
or that Modula or Ada, or lisp is more powerful, or that the whole problem
could have been solved with a 20 line script, the C proponent will reply
(often paraphrasing K&R) that C is both more efficient and more powerful
"since it lets you get close to the machine".
This assertion continues to be made even after contrary facts are
demonstrated. This can go on to absurd lengths where some unholy concoction
of inline assembler and preprocessor abuse on one machine (so sadly no
longer made) is claimed to be faster than the "same" program in fortran.
- C is "portable"
C is certainly common, but even within the confines of the ANSI standard
there is wide scope for major portability problems. In the database
world, the major players all have entire departments with 100+ or so
persons that do nothing except "port" each new release of what is
essential one very large C program.
Often the portability argument will somehow co-exist with the "close to
the machine" argument, even alongside the claim that "if you want real
performance, you need to read all the hardware manuals and rewrite for
each machine"
- C is a simple language with simple syntax.
This is simply not true. A look at either the grammars, or the language
reports will reveal many simpler languages. C may be simpler than ADA or
PL1 or most especially C++, but compared to say Oberon or Modula-3, or
even Fortran it is not a simple language.
More strongly, it does not have simple syntax. Forth, Smalltalk, Self,
the lisp familyi, these have simple syntax. Among the Algol family, some
of the Wirth languages, especially Oberon have much simpler syntax than C.
The assertion (that C is simple) is often comtemporanious (but hardly
supported) with statements that the asserter has frequent reference to
more than one C book and that the questioner "must not understand the
fine points" of C.
- C is terse and elegant.
For any C program there is a much shorter and more elegant solution in
some other language. As simple proof, consider a language "just like C"
but with garbage collection. Most C programs would be far shorter and
more elegant if written that way. For a really tough test of terseness,
pick a random perl script and write it in C. This argument may be
related to the "simple language" argument, except that is seems to be
motivated by a subconscious aversion to typing keywords. This is
almost explicit in K&R where "{" and "}" are equated to "BEGIN" and
"END".
- C lets me do what I want. You can't write operating systems in "other".
This of course begs the question of how common "writing an operating
system" is, and ignores several perfectly good operating systems
not written in C.
The relevance of this point is also hard to fathom since it is usually
raised in opposition to the assertion "for some problems C is not the
best choice".
The counter argument is that C makes it really easy to do what you
do not want. Somehow this is felt to be adaquately countered by assertions
about "competent C programmers" vs "crap programmers". The inconsistancy
with the "simple language" claim is rarely explored.
Enough of the war, now to the unsupported opinions:
Why is C successful, and what lies ahead?
In a word, it is mostly "fashion".
C was initially successful because it had a great book, available
implementations (especially, available to universities), was easy to host
on smaller hardware, and wasn't much worse than the common alternatives of
the time.
C survives because it is ubiquitous, it will do most jobs eventually, and
many people (who should know better) are unaware of the alternatives or
are stuck with it for some reason.
C has fanatic followers because it appeals to lazyness with its "terse"
syntax, to Walter Mitty fantasy with "I could write an OS with this",
and to the need for machismo comparison with its arcane intricacy "a real
C programmer would just use macros for that". Each SEGV becomes a bonding
ritual with the C brethren akin to an extended fraternity hazing.
C++ is successful at the moment, mostly because there are hordes of C
programmers eager to "progress" to the next level. Since it is unlikely
that most programmers will ever be able to work at an economicly acceptable
rate in C++ due to its overwhelming complexity. It also almost completely
lacking the actual virtues of C.
Java is likely to be a sucess, perhaps in a dialect form that omits some of
the tougher parts of the implementation. This will occur not only because it
it is better than C, or C++, but also because it, brilliantly, looks a lot
like both. The hordes of not quite successful C++ programmers and their
managers are going to be casting about for some way out of the swamp.
Java will be there with all the familiar appearance and without most of
the hidden minefields.
Who the heck am I anyway?
I have been programming for a living for almost 20 years. I learned C on a
PDP-11, where it really did make some sense, and have worked mainly with C
for the past 15 years. For the last 10 years I have worked at one or
another of the major SQL database companies on the core server engine(s).
An SQL server engine is typically a large C program, between 500,000 and 2m
lines of code. These engines are about as close to "writing an OS" or
"writing a compiler" as possible. They implement the SQL language processor,
a file system (usually built on raw partitions), a networking protocol (on
top of tcp or other transport), and what looks like an OS kernel (asynch
I/O, threading, sychronization, memory management for threads, etc.)
These programs ported to dozens of platforms, mostly unix flavored, but also
NT and others. They are written, maintained, ported, and enhanced by
engineering departments consisting of a few hundred persons. The code is
expected to be useable for up to a decade. New versions are expected no
more than two years apart.
Performance (both time and space, both compute and I/O) and reliability are
considered critical. Vast effort is spent on testing, somewhat less on
benchmarking, but somehow, performance is easier than reliability.
My opinions about C and software development come from my experience as a
practitioner and as an observer of the DBMS engineering organizations as well
the odd bit of reading here and there.
-dg
David Gould dg@illustra.com 510.628.3783 or 510.305.9468
Informix Software 300 Lakeside Drive Oakland, CA 94612
If simplicity worked, the world would be overrun with insects.
--
David Gould dg@illustra.com 510.628.3783 or 510.305.9468
Informix Software 300 Lakeside Drive Oakland, CA 94612
- I realize now that irony has no place in business communications.
next prev parent reply other threads:[~1997-10-10 4:00 UTC|newest]
Thread overview: 207+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-08 4:00 Final kick at the "Merced Guessing Game" Robert Harley
1997-10-08 4:00 ` David Chase
1997-10-08 4:00 ` William Clodius
1997-10-08 4:00 ` brianh
1997-10-08 4:00 ` boo
1997-10-09 4:00 ` Eric Hildum
1997-10-09 4:00 ` brianh
1997-10-11 4:00 ` Jan Vorbrueggen
1997-10-12 4:00 ` boo
1997-10-13 4:00 ` Carl Perkins
1997-10-13 4:00 ` Michael Williams
1997-10-13 4:00 ` Craig Burley
1997-10-13 4:00 ` boo
1997-10-15 4:00 ` Craig Burley
1997-10-16 4:00 ` Flexible Choice of Language (Nothing to do with: Final kick at the "Merced Guessing Game") Ian Dall
1997-10-16 4:00 ` Craig Burley
1997-10-17 4:00 ` Richard A. O'Keefe
1997-10-17 4:00 ` Keith Adams
1997-10-17 4:00 ` [Reposted due to Enlow UCE cancel]: " John Bayko
1997-10-20 4:00 ` Paul D. DeRocco
1997-10-17 4:00 ` John Bayko
1997-10-18 4:00 ` Kelly Hall
1997-10-20 4:00 ` [Reposted due to Enlow UCE cancel]: " Eric Hildum
[not found] ` <623ek6$ef5$1@news.iastate.edu>
1997-10-16 4:00 ` Final kick at the "Merced Guessing Game" Craig Burley
1997-10-16 4:00 ` SimGraphics
1997-10-17 4:00 ` Craig Burley
1997-10-17 4:00 ` William Clodius
1997-10-19 4:00 ` Craig Burley
1997-10-17 4:00 ` David Chase
1997-10-18 4:00 ` Victor Yodaiken
1997-10-20 4:00 ` Eric Hildum
1997-10-18 4:00 ` Peter L. Montgomery
1997-10-19 4:00 ` Craig Burley
[not found] ` <3456700e.14141203@news.demon.co.uk>
1997-10-28 5:00 ` Dirk van der Knijff
1997-10-20 4:00 ` Richard A. O'Keefe
1997-10-20 4:00 ` Peter L. Montgomery
1997-10-13 4:00 ` Paul Rubin
1997-10-13 4:00 ` William Clodius
1997-10-13 4:00 ` Craig Burley
1997-10-14 4:00 ` Richard A. O'Keefe
1997-10-14 4:00 ` Shankar Unni
1997-10-15 4:00 ` Achim Gratz
1997-10-15 4:00 ` Richard A. O'Keefe
1997-10-15 4:00 ` Paul D. DeRocco
1997-10-15 4:00 ` Joe Buck
1997-10-15 4:00 ` William Clodius
1997-10-16 4:00 ` Richard A. O'Keefe
1997-10-16 4:00 ` Craig Burley
1997-10-17 4:00 ` Shankar Unni
1997-10-14 4:00 ` Michael Williams
1997-10-14 4:00 ` Richard Black
1997-10-15 4:00 ` Craig Burley
1997-10-15 4:00 ` Michael Williams
1997-10-15 4:00 ` Dr. Richard Black
1997-10-16 4:00 ` Richard A. O'Keefe
1997-10-18 4:00 ` Bruce Hoult
1997-10-15 4:00 ` Paul Hsieh
1997-10-09 4:00 ` Gregg E Economou
1997-10-10 4:00 ` Jan Vorbrueggen
[not found] ` <61ho3v$3m0$1@goanna.cs.rmit.edu.au>
1997-10-09 4:00 ` boo
1997-10-09 4:00 ` William Clodius
1997-10-10 4:00 ` Richard A. O'Keefe
1997-10-10 4:00 ` Tyson Richard DOWD
1997-10-12 4:00 ` boo
1997-10-13 4:00 ` Patricia Shanahan
1997-10-15 4:00 ` boo
1997-10-15 4:00 ` Patricia Shanahan
1997-10-13 4:00 ` Steve Tate
1997-10-13 4:00 ` Bernd Paysan
1997-10-13 4:00 ` boo
1997-10-13 4:00 ` Aaron Spink
1997-10-14 4:00 ` boo
1997-10-18 4:00 ` [Reposted due to Enlow UCE cancel]: " tgg
1997-10-18 4:00 ` tgg
1997-10-13 4:00 ` boo
1997-10-13 4:00 ` Victor Yodaiken
1997-10-14 4:00 ` Aaron Spink
1997-10-14 4:00 ` Jason.Ozolins
1997-10-15 4:00 ` boo
1997-10-15 4:00 ` David Chase
1997-10-10 4:00 ` boo
1997-10-11 4:00 ` Patricia Shanahan
1997-10-13 4:00 ` Gregg E Economou
1997-10-13 4:00 ` Patricia Shanahan
1997-10-14 4:00 ` Richard A. O'Keefe
1997-10-15 4:00 ` boo
1997-10-16 4:00 ` Toon Moene
1997-10-16 4:00 ` Timothy A. Seufert
1997-10-16 4:00 ` boo
1997-10-17 4:00 ` Richard A. O'Keefe
1997-10-20 4:00 ` Jason.Ozolins
1997-10-20 4:00 ` [Reposted due to Enlow UCE cancel]: " tgg
1997-10-11 4:00 ` Toon Moene
1997-10-11 4:00 ` Paul DeMone
[not found] ` <EHrwv9.2w3@world.std.com>
1997-10-10 4:00 ` David Gould [this message]
1997-10-10 4:00 ` Maynard Handley
1997-10-11 4:00 ` new languages Preston Briggs
1997-10-10 4:00 ` Final kick at the "Merced Guessing Game" David Gould
1997-10-16 4:00 ` Patricia Shanahan
-- strict thread matches above, loose matches on Subject: below --
1997-10-09 4:00 Robert Harley
1997-10-08 4:00 Robert Harley
[not found] ` <343C0387.41C6@lanl.gov>
1997-10-08 4:00 ` boo
1997-10-09 4:00 ` Patrick Chase
1997-10-10 4:00 ` boo
1997-10-09 4:00 ` David Chase
1997-10-08 4:00 ` boo
1997-10-09 4:00 ` William Clodius
1997-10-09 4:00 ` David Chase
1997-10-08 4:00 Robert Harley
1997-10-08 4:00 ` Michael Meissner
1997-10-09 4:00 ` Richard A. O'Keefe
1997-10-07 4:00 Robert Harley
1997-10-07 4:00 ` Nick Maclaren
1997-10-07 4:00 ` Shankar Unni
1997-10-08 4:00 ` boo
1997-10-09 4:00 ` Patrick F. McGehearty
1997-10-10 4:00 ` Richard A. O'Keefe
1997-10-15 4:00 ` David Chase
1997-10-16 4:00 ` William Clodius
1997-10-07 4:00 ` Martin Rodgers
1997-10-03 4:00 Robert Harley
1997-10-06 4:00 ` Richard A. O'Keefe
1997-10-06 4:00 ` boo
1997-10-07 4:00 ` Carlie Coats
1997-10-07 4:00 ` Paul Hsieh
1997-10-07 4:00 ` boo
1997-10-08 4:00 ` Carlie Coats
1997-10-07 4:00 ` Serge Pachkovsky
1997-10-07 4:00 ` Martin Rodgers
1997-10-07 4:00 ` Greg Weeks
1997-10-07 4:00 ` Martin Rodgers
[not found] ` <343AAE5A.A3FCC9D@no.informatik.spam.tu-muenchen.thanks.de>
1997-10-09 4:00 ` Torben AEgidius Mogensen
[not found] ` <EHsr7B.Dt8@bit3.com>
1997-10-10 4:00 ` Torben AEgidius Mogensen
[not found] ` <61cv5e$qn$6@vixen.cso.uiuc.edu>
1997-10-08 4:00 ` William Clodius
1997-10-07 4:00 ` Richard A. O'Keefe
1997-10-06 4:00 ` Graham Hughes
1997-10-07 4:00 ` boo
1997-10-07 4:00 ` William Clodius
1997-10-07 4:00 ` William Clodius
1997-10-08 4:00 ` Richard A. O'Keefe
1997-10-08 4:00 ` William Clodius
1997-10-08 4:00 ` William Clodius
[not found] ` <y4wwjon203.fsf@mailhost.neuroinformatik.ruhr-uni-bochum.de>
1997-10-08 4:00 ` William Clodius
1997-10-08 4:00 ` Stanley Chow
1997-10-09 4:00 ` William Clodius
1997-10-10 4:00 ` Larry Kilgallen
1997-10-10 4:00 ` Zalman Stern
1997-10-11 4:00 ` Andrew Cruickshank
1997-10-12 4:00 ` Paul D. DeRocco
1997-10-13 4:00 ` Michael Williams
1997-10-08 4:00 ` Gregg E Economou
1997-10-08 4:00 ` David Chase
1997-10-08 4:00 ` Richard A. O'Keefe
1997-10-08 4:00 ` James C. Stutts
1997-10-02 4:00 Robert Harley
1997-10-02 4:00 ` Nick Maclaren
1997-10-02 4:00 ` Stanley Chow
1997-10-02 4:00 Robert Harley
1997-10-02 4:00 ` Nick Maclaren
1997-10-03 4:00 ` Richard A. O'Keefe
1997-09-30 4:00 Paul DeMone
1997-09-30 4:00 ` Guy Harris
1997-10-01 4:00 ` Tom Thornhill
1997-10-01 4:00 ` Nick Maclaren
1997-10-01 4:00 ` J. Corbally
1997-10-01 4:00 ` Nick Maclaren
1997-10-01 4:00 ` Ketil Z Malde
1997-10-01 4:00 ` Michael D. Nahas
1997-10-01 4:00 ` Stefan Monnier
1997-10-01 4:00 ` Nick Maclaren
1997-10-01 4:00 ` John Wilson
1997-10-01 4:00 ` P Murray
1997-10-01 4:00 ` Nick Maclaren
1997-10-02 4:00 ` Andrew Glew
1997-10-02 4:00 ` Vesa Karvonen
1997-10-02 4:00 ` Joseph H Allen
1997-10-02 4:00 ` Wilco Dijkstra
1997-10-03 4:00 ` Stefan Monnier
1997-10-03 4:00 ` Jason.Ozolins
1997-10-03 4:00 ` Alex Colvin
1997-10-06 4:00 ` Richard A. O'Keefe
1997-10-08 4:00 ` Zalman Stern
1997-10-03 4:00 ` Stefan Monnier
1997-10-02 4:00 ` Torben AEgidius Mogensen
1997-10-02 4:00 ` Patrick F. McGehearty
1997-10-02 4:00 ` brianh
1997-10-03 4:00 ` Michael Williams
1997-10-01 4:00 ` Allen Kim
1997-10-02 4:00 ` Stefan Monnier
1997-10-03 4:00 ` Richard A. O'Keefe
1997-10-02 4:00 ` Jon Leech
1997-10-03 4:00 ` Mike Smith
1997-10-03 4:00 ` Nick Maclaren
1997-10-03 4:00 ` Rob Barris
1997-10-03 4:00 ` Andrew Glew
1997-10-05 4:00 ` Gianni Mariani
1997-10-04 4:00 ` Nick Maclaren
1997-10-04 4:00 ` H. Eckert
1997-10-05 4:00 ` Andy "Krazy" Glew
1997-10-06 4:00 ` Nick Maclaren
1997-10-01 4:00 ` brianh
1997-10-02 4:00 ` Eric Hildum
1997-10-01 4:00 ` Paul DeMone
1997-10-01 4:00 ` Richard A. Schumacher
1997-10-01 4:00 ` Tom Thornhill
1997-10-01 4:00 ` Paul DeMone
1997-10-01 4:00 ` Jim Hull
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