Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe)
Subject: Re: Final kick at the "Merced Guessing Game"
Date: 1997/10/06	[thread overview]
Message-ID: <619nmn$4jv$1@goanna.cs.rmit.edu.au> (raw)
In-Reply-To: 612k6f$i79@news-rocq.inria.fr

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4254 bytes --]


harley@pauillac.inria.fr (Robert Harley) writes:

>Richard A. O'Keefe (ok@goanna.cs.rmit.edu.au) wrote:
>>Doesn't work.
>>
>>There's an illuminating discussion in the rationale of the POSIX.1
>>standard [...]
>>
>>THIS is Nick Maclaren's point.  Given
>>      char **triMat;
>>the declaration
>>      double const * const * const constTriMat = triMat;
>>is simply illegal.

>Sure, and it's "simply illegal" to assume that integer arithmetic is
>done in binary.

This is completely wrong, and betrays a total lack of familiarity
with the history or content of the C standard.

The C standard *requires* binary integer arithmetic.
C89 was carefully worded to allow any of
	sign-and-magnitude	(like Unisys A series machines)
	ones complement		(like Unisys 2200 machines)
	twos complement
But the C standard is quite clear that all integer arithmetic results
must be as if one of these systems were in use.

In contrast, the mismatched pointer example is one where the
compiler is not merely not required to make it work, the
compiler is *REQUIRED* to issue a diagnostic.

>But guess what, there are other implementations that are not only
>plausible but actually exist!

So?  The C standardisers were not interested in limiting C to only
the machines where your prejudices happen to be valid.  The C9X
revisers have no interest in such limitations either.

>And they have implementation-dependent
>features left open by the standard, and extensions not specified by
>the standard!  Gasp!

Yeah, but mixing up pointers to differently qualified objects is NOT
only of those things left open.

>Over here in the real world, we compile our programs with them:
>compilers for which integers are in binary 

which the C standard clearly and explicitly requires

>and type qualifiers
>give warnings sometimes, not errors.

Then you are not using standard C compilers.  That is your privilege.

>If you are allergic to such a
>warning, stick in a cast as Nick suggested.

No.  The diagnostics are required because a cast _wouldn't_ fix the
problem.

>>>Whereas your beloved Fortran checks that the user's assumptions about
>>>lack of aliasing are correct, perhaps?
>>
>>Yes, there are indeed static checkers available for Fortran that will
>>check such assumptions.  I have not used any myself, but I am aware of
>>two.

>Ah, so in the case of C refer to the standard only, in order to
>criticize limitations in it.

Are you serious?

I have not criticised any limitation in the C standard at all.
I have pointed out that the kind of Stupid Pointer Tricks (comp.std.c
idiom) you want to play are explicitly forbidden by the standard.
I THINK THIS IS RIGHT.  I am not criticising the standard there,
I am approving it.

>But for other languages, dredge up extra
>features you "are aware of" in implementations you've never used.

Those checkers enforce aspects of the Fortran standard.
C compilers are required to enforce aspects of the C standard.
As for me, I use the best static checkers for C that I can get
my hands on, and if I did as much Fortran coding as I do C,
I would make sure to use the best static checkers for Fortran
that I could get my hands on.


>Everybody is fooled by this devastating ploy, so we'll now delete our
>programs, apps and O.S.es, the transport protocols that will send this
>message and so on, and rewrite them in a superior language.

Oh grow up.

Where did I say C was inferior?
On *one specific point*, I provided factual support for Nick Maclaren's
claim.  That has absolutely no bearing on whether one language is
better than the other *in general* or for any particular *nominated
purpose*.

C was not designed for high performance numeric computing, so it is
no disgrace that it isn't _quite_ as well suited to that task as
Fortran, which _was_ designed for high performance numeric computing.

Fortran was not designed for implementing operating systems, so it is
no disgrace that it (F95) isn't _quite_ as well suited to that task
as C, which _was_ designed for implementing operating systems.

C is good enough to stand on its own merits without people telling
lies about it.

-- 
John �neas Byron O'Keefe; 1921/02/04-1997/09/27; TLG,TLTA,BBTNOTL.
Richard A. O'Keefe; http://www.cs.rmit.edu.au/%7Eok; RMIT Comp.Sci.



  reply	other threads:[~1997-10-06  4:00 UTC|newest]

Thread overview: 204+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-03  4:00 Final kick at the "Merced Guessing Game" Robert Harley
1997-10-06  4:00 ` Richard A. O'Keefe [this message]
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
     [not found]             ` <343C3737.5435@Japan.NCR.com>
1997-10-09  4:00               ` C language Craig Burley
     [not found]                 ` <61jc3i$h2q$1@sue.cc.uregina.ca>
1997-10-09  4:00                   ` C vs. Fortran - Perl wins Nick Maclaren
1997-10-09  4:00                     ` Craig Burley
1997-10-10  4:00                       ` Richard A. O'Keefe
1997-10-10  4:00                         ` Craig Burley
1997-10-10  4:00                         ` David Gay
1997-10-13  4:00                       ` Roger Barnett
1997-10-14  4:00                   ` Richard A. O'Keefe
1997-10-18  4:00                   ` Tom
1997-10-07  4:00     ` Final kick at the "Merced Guessing Game" 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       ` 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-08  4:00         ` Richard A. O'Keefe
1997-10-08  4:00           ` William Clodius
1997-10-08  4:00           ` William Clodius
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-07  4:00       ` boo
1997-10-07  4:00         ` William Clodius
1997-10-08  4:00       ` Gregg E Economou
1997-10-08  4:00         ` Richard A. O'Keefe
1997-10-08  4:00         ` David Chase
1997-10-08  4:00     ` James C. Stutts
  -- strict thread matches above, loose matches on Subject: below --
1997-10-09  4:00 Robert Harley
1997-10-08  4:00 Robert Harley
1997-10-08  4:00 ` brianh
1997-10-08  4:00   ` boo
1997-10-09  4:00     ` brianh
1997-10-09  4:00     ` Eric Hildum
1997-10-11  4:00     ` Jan Vorbrueggen
1997-10-12  4:00       ` boo
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
     [not found]                 ` <623ek6$ef5$1@news.iastate.edu>
1997-10-16  4:00                   ` Craig Burley
1997-10-16  4:00                     ` SimGraphics
1997-10-17  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-17  4:00                         ` William Clodius
1997-10-19  4:00                           ` Craig Burley
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                 ` Michael Williams
1997-10-14  4:00                   ` Richard Black
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-15  4:00                     ` Craig Burley
1997-10-18  4:00                     ` Bruce Hoult
1997-10-14  4:00                 ` Shankar Unni
1997-10-15  4:00                   ` Richard A. O'Keefe
1997-10-15  4:00                     ` Paul D. DeRocco
1997-10-15  4:00                       ` William Clodius
1997-10-15  4:00                       ` Joe Buck
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-15  4:00                   ` Achim Gratz
1997-10-15  4:00                 ` Paul Hsieh
1997-10-13  4:00         ` Carl Perkins
1997-10-09  4:00   ` Gregg E Economou
1997-10-10  4:00     ` Jan Vorbrueggen
1997-10-08  4:00 ` William Clodius
1997-10-08  4:00 ` David Chase
     [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         ` Steve Tate
1997-10-13  4:00           ` boo
1997-10-13  4:00             ` Aaron Spink
1997-10-14  4:00               ` boo
1997-10-18  4:00                 ` tgg
1997-10-13  4:00           ` Bernd Paysan
1997-10-13  4:00           ` boo
1997-10-13  4:00             ` Victor Yodaiken
1997-10-14  4:00             ` Jason.Ozolins
1997-10-15  4:00               ` boo
1997-10-14  4:00             ` Aaron Spink
1997-10-15  4:00             ` David Chase
1997-10-13  4:00         ` Patricia Shanahan
1997-10-15  4:00           ` boo
1997-10-15  4:00             ` Patricia Shanahan
1997-10-10  4:00     ` boo
1997-10-11  4:00       ` Toon Moene
1997-10-11  4:00       ` Paul DeMone
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
     [not found]   ` <EHrwv9.2w3@world.std.com>
1997-10-10  4:00     ` David Gould
1997-10-16  4:00       ` Patricia Shanahan
1997-10-10  4:00     ` David Gould
1997-10-10  4:00       ` Maynard Handley
1997-10-08  4:00 Robert Harley
     [not found] ` <343C0387.41C6@lanl.gov>
1997-10-08  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     ` Patrick Chase
1997-10-10  4:00       ` boo
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 ` Martin Rodgers
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 ` Nick Maclaren
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 ` Tom Thornhill
1997-10-01  4:00   ` Paul DeMone
1997-10-01  4:00   ` Jim Hull
1997-10-01  4:00 ` Richard A. Schumacher
1997-10-01  4:00 ` Nick Maclaren
1997-10-01  4:00   ` Paul DeMone
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               ` Allen Kim
1997-10-01  4:00               ` P Murray
1997-10-01  4:00                 ` Nick Maclaren
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                         ` 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-03  4:00                       ` Stefan Monnier
1997-10-02  4:00                   ` Andrew Glew
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               ` John Wilson
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
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