Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Eric D. Osborne" <osborneer@mail.dec.com>
Subject: Re: What Does DEC Have Left? (was: Current Unpleasantness Resolved)
Date: 1997/11/21	[thread overview]
Message-ID: <34753FEF.1EB6@mail.dec.com> (raw)
In-Reply-To: 64ia1i$of4$2@joe.rice.edu


Anil Thomas Maliyekkel wrote:
> 
> 
> Because the interfaces necessary to take advantage of 64 bit address
> spaces and 64 bit file systems involve using differ data types
> for the parameters.  Most UNIX applications have been written to use
> 32 bit paramaters for file system operations and have been written
> to take advantage of 32 address spaces.  32 bit UNIX 95 compliant
> OSes share the identical interfaces which makes portibility between
> these OSes much easier.  Since Digital decided to eschew 32 bit
> compatibility in Digital Unix, it made it harder for companies
> to port applications over.  Also paging characteristics for 64 bit
> OSes makes performance and memory consumption optimization more
> difficult for programs that were designed to run optimally on
> 32 bit OSes.

This kind of thing really bugs me, because it is just blatantly WRONG.
Digital UNIX on ALPHA is pretty much always fully source compatible with
Solaris and HP/UX, assuming PROPERLY (e.g., standards compliant code).

The biggest portability problem is sloppy coding. If you write
code to the proper ANSI standards, at a source level it is transparent
(or nearly so) when moving between Digital UNIX and Sun/HP/whatever
systems. I've done a LOT of this, and in general, once I've ported
the code it will compile without a hitch on other vendor systems.

Case in point - the POSIX.1 and  XPG standards for file I/O primitives
use the defined type t_offset to describe the file position pointer
in lseek, and size_t for read, write, etc. These object types - 
t_offset, size_t, etc., are abstractions that are defined in the system
header file sys/types.h

A good ANSI compiler (we have a good one :-) ) will complain if you
use the wrong parameter types on the calls (and well it should). So,
if you have code like this

	int	f;		/* file descriptor */
	int	ret_code;	/* for return code checking */
	char	buffer[BUFSIZE];
	/* put in code to open file here */
	ret_code = read(f, buffer, (size_t) sizeof(buffer));


this will work on ANYTHING that is standards compliant. The problem
is, people do dumb stuff like this :
	int	f;
	int	ret_code, size;
	char	buffer[BUFSIZE];
	/* put in code to open file here */
	ret_code = read(f, buffer, size);

THIS IS BROKEN, because the "size" parameter passed to the read 
call is of the wrong data type. This will, by blind luck, work on most
32 bit machines. It will break on DU, BUT NOT BECAUSE DU IS 
NON-STANDARD. It will break because it is crappy code. Fixing it will
make it work on EVERYTHING, and eliminate a potential maintenence 
headache from the source pool forever.

Even at run-time, Solaris and HP/UX will allow you to get away with
really poor coding. Dereferencing of null pointers, for instance,
is a BAD THING, and it happens in a lot of crufty code. Sometimes
it gets by, depending on architecture. The TLI allocation calls on 
at least some versions of Solaris do a very poor job of checking
the integrity of passed arguments. When broken (by the definition 
of the STANDARDS) code is moved from those machines to DU, developers
are often quick to blame DU because the code doesn't work - when it is
more likely bugs in the original source. 

I can produce examples to demonstrate this kind of thing. I would be
delighted to see one where code written to standards, which does not
INTENTIONALLY exploit object size differneces or byte order, doesn't 
port cleanly. Specifically, I would challenge anyone to show me any
significant set of DU library or system calls that don't conform to
the appropriate UNIX standards. About the only time you get into any
trouble at all is when you make assumptions about object sizes - and
that is a violation of the C language standard.

At the risk of being inflamatory, I can cope with legitimate criticism
as well as anyone. But I have an issue with highly opinionated,
negative postings that have no basis in fact.

Eric D. Osborne

The opinions expressed herein are my own, and should not be construed
to represent any official statement by Digital Equipment Corporation.



  reply	other threads:[~1997-11-21  5:00 UTC|newest]

Thread overview: 309+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-27  5:00 Per SKD Expections, Current Unpleasantness Resolved T. Shannon
     [not found] ` <632ops$i0m$1@sun27.hrz.tu-darmstadt.de>
1997-10-27  5:00   ` What Does DEC Have Left? (was: Current Unpleasantness Resolved) T. Shannon
1997-10-27  5:00     ` Larry Kilgallen
1997-10-27  5:00     ` Paul DeMone
1997-10-28  5:00       ` John Wilson
1997-10-28  5:00       ` Anil Thomas Maliyekkel
1997-10-28  5:00         ` Larry Kilgallen
1997-10-28  5:00           ` Anil Thomas Maliyekkel
1997-10-28  5:00             ` Douglas H. Borsom
1997-10-29  5:00               ` Carl Perkins
1997-10-29  5:00                 ` bowler
1997-10-29  5:00                   ` Anil Thomas Maliyekkel
1997-10-29  5:00                     ` Terry C. Shannon
1997-10-30  5:00             ` Burkhard Neidecker-Lutz
1997-10-30  5:00               ` Anil Thomas Maliyekkel
1997-10-30  5:00               ` Terry C. Shannon
1997-10-31  5:00               ` Andrew Harrison SUNUK Consultancy
1997-10-31  5:00                 ` Anil Thomas Maliyekkel
1997-10-31  5:00                 ` Douglas H. Borsom
1997-11-05  5:00                 ` Dave Cherkus
1997-10-31  5:00               ` Robert Koehler
1997-10-31  5:00                 ` Andrew Harrison SUNUK Consultancy
1997-10-31  5:00               ` Matt Dillon
1997-11-05  5:00                 ` Dave Cherkus
1997-11-05  5:00                   ` Joshua Cope
1997-11-05  5:00                   ` Matt Dillon
1997-11-06  5:00                     ` Stefan Monnier
1997-11-06  5:00                       ` Guy Harris
1997-11-06  5:00                         ` Matt Dillon
1997-11-08  5:00                     ` Dave Cherkus
1997-11-06  5:00                   ` Shannon Hendrix
1997-11-09  5:00                   ` Larry Kilgallen
1997-10-28  5:00           ` Egg
1997-10-28  5:00           ` Phillip Helbig
1997-10-28  5:00         ` Glenn Everhart
1997-10-28  5:00           ` Larry Kilgallen
1997-10-30  5:00           ` Dave Cherkus
1997-10-30  5:00         ` Dave Cherkus
1997-10-30  5:00           ` Mats Wichmann
1997-10-30  5:00           ` Terry C. Shannon
1997-10-30  5:00         ` Martin Moore
1997-10-30  5:00           ` kenn roberts
1997-10-31  5:00             ` Burkhard Neidecker-Lutz
1997-10-31  5:00               ` Andrew Harrison SUNUK Consultancy
1997-10-31  5:00                 ` Anil Thomas Maliyekkel
1997-11-03  5:00                 ` Burkhard Neidecker-Lutz
1997-11-05  5:00                   ` Andrew Harrison SUNUK Consultancy
1997-11-11  5:00                     ` Stefan Monnier
1997-11-11  5:00                     ` Burkhard Neidecker-Lutz
1997-11-11  5:00                       ` Anil Thomas Maliyekkel
1997-11-12  5:00                         ` Matthias Dolder
1997-11-14  5:00                           ` Peter Quodling
1997-11-14  5:00                             ` Anil Thomas Maliyekkel
1997-11-21  5:00                               ` Eric D. Osborne [this message]
1997-11-21  5:00                                 ` Matt Dillon
1997-11-21  5:00                                   ` Will "Alpha is Toast" Become a Self-Fulfilling Prophecy? Terry Shannon
1997-11-24  5:00                                   ` What Does DEC Have Left? (was: Current Unpleasantness Resolved) Eric D. Osborne
1997-11-24  5:00                                     ` Anil Thomas Maliyekkel
1997-11-21  5:00                                 ` Mike Iglesias
1997-11-13  5:00                         ` Burkhard Neidecker-Lutz
1997-11-13  5:00                           ` Anil Thomas Maliyekkel
1997-11-12  5:00                       ` Andrew Harrison SUNUK Consultancy
1997-11-13  5:00                         ` Matthias Dolder
     [not found]                           ` <64q2s3$1dm@flonk.uk.sun.com>
1997-11-18  5:00                             ` Dennis Weed
1997-11-19  5:00                               ` Andrew Harrison SUNUK Consultancy
1997-11-19  5:00                                 ` Terry Shannon
1997-11-20  5:00                                   ` Phil Ronzone
1997-11-20  5:00                                 ` Paul DeMone
1997-11-18  5:00                             ` Kristoffer Lawson
1997-11-19  5:00                               ` Andrew Harrison SUNUK Consultancy
1997-11-19  5:00                                 ` Andre M Scroggie
1997-11-20  5:00                                   ` Terry Shannon
1997-11-19  5:00                                 ` jf mezei
1997-11-21  5:00                                   ` Craig Milo Rogers
1997-11-21  5:00                                     ` Terry Shannon
1997-11-21  5:00                             ` Matthias Dolder
1997-11-24  5:00                               ` Andrew Harrison SUNUK Consultancy
1997-11-26  5:00                                 ` Peter Mayne
1997-11-27  5:00                                   ` Andrew Harrison SUNUK Consultancy
1997-11-21  5:00                             ` Matthias Dolder
1997-11-23  5:00                               ` Like a tea tray in the sky...
1997-11-26  5:00                                 ` Brian Schenkenberger, VAXman-
1997-11-03  5:00                 ` mathog
1997-11-04  5:00                   ` Jerry Leichter
1997-11-04  5:00                     ` mathog
1997-11-04  5:00                       ` Paul DeMone
1997-11-04  5:00                       ` Jerome Fine
1997-11-07  5:00                   ` Glenn C. Everhart
1997-11-09  5:00                   ` Larry Kilgallen
1997-11-06  5:00                 ` Paul Repacholi (prep)
1997-11-06  5:00                   ` Burkhard Neidecker-Lutz
1997-10-31  5:00               ` Egg
1997-11-03  5:00                 ` Burkhard Neidecker-Lutz
1997-11-01  5:00               ` John A. Turner
1997-11-05  5:00                 ` Burkhard Neidecker-Lutz
1997-11-07  5:00                 ` Glenn C. Everhart
1997-11-10  5:00                   ` Burkhard Neidecker-Lutz
1997-11-10  5:00                     ` Shannon Hendrix
1997-11-11  5:00                       ` Burkhard Neidecker-Lutz
1997-11-12  5:00                         ` Glenn C. Everhart
1997-10-30  5:00       ` Mitchell Clark
1997-10-30  5:00         ` Terry C. Shannon
1997-10-30  5:00         ` Ed Wilts
1997-10-27  5:00 ` Per SKD Expections, Current Unpleasantness Resolved jf mezei
1997-10-28  5:00   ` Larry Kilgallen
1997-10-28  5:00   ` T. Shannon
1997-10-28  5:00     ` jf mezei
1997-10-29  5:00       ` Terry C. Shannon
1997-10-29  5:00         ` jf mezei
1997-10-30  5:00           ` Per SKD Exceptions, " Jim Lahman
1997-10-29  5:00             ` Paul DeMone
1997-11-01  5:00               ` Jim Lahman
1997-10-30  5:00           ` Per SKD Expections, " Terry C. Shannon
1997-10-28  5:00   ` Roger Ivie
1997-10-29  5:00     ` Larry Kilgallen
1997-10-30  5:00       ` Brian Schenkenberger, VAXman-
1997-10-28  5:00   ` Douglas H. Borsom
1997-10-30  5:00   ` Burkhard Neidecker-Lutz
1997-10-27  5:00 ` Jonathan Boswell
1997-10-27  5:00   ` Glenn Everhart
1997-10-27  5:00     ` Jonathan Boswell
1997-10-27  5:00       ` Larry Kilgallen
1997-10-27  5:00         ` Douglas H. Borsom
1997-10-28  5:00           ` Roger Ivie
1997-11-03  5:00             ` Burkhard Neidecker-Lutz
1997-10-28  5:00           ` T. Shannon
1997-10-28  5:00             ` Jan Vorbrueggen
1997-10-28  5:00               ` Terry C. Shannon
1997-10-28  5:00             ` Jonathan Boswell
1997-10-30  5:00               ` Burkhard Neidecker-Lutz
1997-10-31  5:00                 ` Rob Young
1997-10-28  5:00             ` Paul DeMone
1997-10-29  5:00               ` Brian Tillman
1997-10-29  5:00                 ` Lawrence MacIntyre
1997-10-31  5:00                   ` Brian Tillman
1997-10-31  5:00                     ` Lee K. Gleason
1997-11-07  5:00             ` Gary Heston
1997-10-28  5:00           ` Terry C. Shannon
1997-10-28  5:00         ` Ed Wilts
1997-10-27  5:00     ` T. Shannon
1997-10-31  5:00       ` Paul Repacholi (prep)
1997-10-27  5:00   ` T. Shannon
1997-10-28  5:00     ` Uwe Leinberger GSI Darmstadt
1997-10-31  5:00       ` Burkhard Neidecker-Lutz
1997-10-28  5:00     ` mathog
1997-10-27  5:00   ` Larry Kilgallen
1997-10-28  5:00     ` Terry C. Shannon
1997-10-29  5:00       ` mathog
1997-10-30  5:00         ` Dave Cherkus
1997-11-01  5:00         ` Kevin Handy
1997-11-03  5:00         ` Burkhard Neidecker-Lutz
1997-10-28  5:00   ` Richard Krehbiel
1997-10-28  5:00   ` mathog
1997-10-28  5:00     ` Tim Shoppa
1997-10-30  5:00       ` Eric D. Osborne
1997-10-30  5:00         ` Guy Harris
1997-10-31  5:00           ` Eric D. Osborne
1997-11-03  5:00             ` Guy Harris
1997-11-03  5:00             ` Guy Harris
1997-11-05  5:00               ` Eric D. Osborne
1997-11-06  5:00                 ` Guy Harris
1997-11-10  5:00                   ` Robert Koehler
1997-11-09  5:00                 ` Larry Kilgallen
1997-11-05  5:00             ` Dave Cherkus
1997-10-30  5:00         ` Jan Vorbrueggen
1997-10-30  5:00         ` Paul J Lustgraaf
1997-10-30  5:00         ` Uwe Leinberger GSI Darmstadt
1997-10-30  5:00         ` Roger Ivie
1997-10-30  5:00           ` Glenn Everhart
1997-10-30  5:00             ` Per SKD Expectations, " Terry C. Shannon
1997-10-30  5:00               ` Glenn Everhart
1997-10-31  5:00             ` Per SKD Expections, " mathog
1997-11-01  5:00               ` Per SKD Expectations, " Terry C. Shannon
1997-10-31  5:00                 ` Mark E. Levy
1997-11-01  5:00                   ` Peter LANGSTOEGER
1997-11-02  5:00                   ` jf mezei
1997-11-03  5:00             ` Per SKD Expections, " Eric D. Osborne
1997-11-04  5:00               ` jf mezei
1997-11-04  5:00               ` system
1997-11-04  5:00                 ` Eric D. Osborne
1997-10-30  5:00         ` John Wilson
1997-10-31  5:00         ` jf mezei
1997-11-01  5:00           ` Per SKD Expectations, " Terry C. Shannon
1997-11-03  5:00           ` Per SKD Expections, " Burkhard Neidecker-Lutz
1997-11-03  5:00       ` Curt Sampson
1997-10-28  5:00     ` Terry C. Shannon
1997-10-28  5:00       ` Roger Ivie
1997-10-29  5:00         ` Terry C. Shannon
1997-10-29  5:00     ` Carl Perkins
1997-11-03  5:00     ` Burkhard Neidecker-Lutz
1997-11-03  5:00       ` jf mezei
1997-11-04  5:00         ` Douglas H. Borsom
1997-11-04  5:00         ` RISC role reversal (was " Paul DeMone
1997-11-06  5:00         ` Burkhard Neidecker-Lutz
1997-11-06  5:00           ` mathog
1997-11-07  5:00             ` Jan Vorbrueggen
1997-11-07  5:00               ` Ross Alexander
1997-11-07  5:00             ` Burkhard Neidecker-Lutz
1997-11-07  5:00               ` Paul Repacholi (prep)
1997-11-10  5:00                 ` Burkhard Neidecker-Lutz
1997-11-10  5:00                   ` Terry C. Shannon
1997-11-10  5:00                   ` Jan Vorbrueggen
1997-11-12  5:00                     ` Glenn C. Everhart
1997-11-10  5:00                   ` Tony Kennedy
1997-11-11  5:00                   ` Paul Repacholi (prep)
1997-11-07  5:00               ` mathog
1997-11-07  5:00                 ` Douglas H. Borsom
1997-11-08  5:00                   ` Dirk Grunwald
1997-11-08  5:00                     ` Douglas H. Borsom
1997-11-10  5:00                   ` mathog
1997-11-11  5:00                   ` Eric van Bezooijen
1997-11-10  5:00                     ` Douglas H. Borsom
1997-11-11  5:00                       ` Chris Morgan
1997-11-11  5:00                         ` Douglas H. Borsom
1997-11-12  5:00                           ` Jordan Henderson
1997-11-10  5:00                 ` OS prices, was: Re: Per SKD Expections mathog
1997-11-11  5:00                   ` John A Santos
1997-11-10  5:00               ` Per SKD Expections, Current Unpleasantness Resolved Like a tea tray in the sky...
1997-11-12  5:00               ` Dave Cherkus
1997-11-06  5:00           ` jf mezei
1997-11-07  5:00             ` Burkhard Neidecker-Lutz
1997-11-07  5:00             ` Allyn W. Dunstan
1997-11-07  5:00               ` Ed Wilts
1997-11-07  5:00           ` Rob Young
1997-11-08  5:00             ` jf mezei
1997-11-09  5:00             ` Larry Kilgallen
1997-11-10  5:00               ` Like a tea tray in the sky...
1997-11-13  5:00                 ` Ross Alexander
1997-11-14  5:00                 ` Tony Scandora 630-252-7541
1997-11-14  5:00                   ` Steve Tate
1997-11-14  5:00                 ` Terry C. Shannon
1997-11-05  5:00       ` Bob DeBula
1997-11-06  5:00         ` Burkhard Neidecker-Lutz
1997-10-27  5:00 ` Malcolm Dunnett
1997-10-28  5:00   ` T. Shannon
1997-10-28  5:00   ` Roger Ivie
1997-10-28  5:00     ` Egg
1997-10-29  5:00   ` Steve Strange
1997-10-29  5:00     ` jf mezei
1997-10-29  5:00       ` Douglas H. Borsom
1997-10-30  5:00       ` Burkhard Neidecker-Lutz
1997-10-30  5:00         ` Larry Hewitt
1997-11-03  5:00           ` Burkhard Neidecker-Lutz
1997-11-04  5:00             ` jf mezei
1997-11-04  5:00               ` Jan Vorbrueggen
1997-11-04  5:00               ` Paul DeMone
1997-11-05  5:00               ` Daniel S. Riley
     [not found]         ` <3459603f.2352852@nntp.ix.netcom.com>
1997-10-31  5:00           ` N Novakovic
1997-10-31  5:00           ` Glenn Everhart
1997-11-03  5:00           ` Burkhard Neidecker-Lutz
1997-10-30  5:00       ` Larry Kilgallen
1997-10-30  5:00         ` Douglas H. Borsom
1997-10-29  5:00     ` Terry C. Shannon
  -- strict thread matches above, loose matches on Subject: below --
1997-11-21  5:00 What Does DEC Have Left? (was: Current Unpleasantness Resolved) Thomas Dzubin
1997-11-21  5:00 ` root
1997-11-22  5:00   ` Douglas H. Borsom
1997-11-21  5:00 ` Like a tea tray in the sky...
1997-11-25  5:00   ` Terry Shannon
1997-11-25  5:00     ` Chuck McCrobie (** MAD VAX **)
1997-11-25  5:00       ` jf mezei
1997-11-25  5:00         ` mathog
1997-11-25  5:00           ` Douglas H. Borsom
1997-11-25  5:00             ` billy
1997-11-26  5:00             ` Terry Shannon
1997-11-26  5:00             ` mathog
1997-11-26  5:00               ` jf mezei
1997-11-29  5:00                 ` Joseph B. Gurman
1997-11-29  5:00                   ` Jerry Leslie
1997-11-29  5:00                     ` Joseph B. Gurman
1997-11-29  5:00                   ` Tim Shoppa
1997-11-29  5:00                     ` Joseph B. Gurman
1997-11-30  5:00                       ` Terry Shannon
1997-12-03  5:00                         ` Joseph B. Gurman
1997-12-05  5:00                         ` Paul DeMone
1997-12-02  5:00                       ` jeffrey.powell
1997-12-03  5:00                         ` Tony Scandora 630-252-7541
1997-12-03  5:00                           ` Terry Shannon
1997-12-04  5:00                             ` jf mezei
1997-12-04  5:00                               ` John Hascall
1997-12-04  5:00                               ` Terry Shannon
1997-12-04  5:00                                 ` Anil Thomas Maliyekkel
1997-12-04  5:00                           ` Peter LANGSTOEGER
1997-12-03  5:00                       ` Paul DeMone
1997-12-05  5:00                         ` Lothar Deil
1997-12-03  5:00                       ` Gregg E Economou
1997-11-29  5:00                   ` jf mezei
1997-11-30  5:00                     ` Terry Shannon
1997-11-30  5:00                       ` jf mezei
1997-11-30  5:00                       ` Mark E. Levy
1997-11-25  5:00         ` John Wilson
1997-11-25  5:00           ` David M. Whitney
1997-11-26  5:00             ` vhalkka
1997-11-25  5:00         ` Terry Shannon
1997-11-29  5:00           ` Gregg E Economou
1997-11-29  5:00             ` root
1997-12-02  5:00               ` Mark E. Levy
1997-12-03  5:00                 ` John Hascall
1997-12-04  5:00                   ` Tony Scandora 630-252-7541
1997-12-08  5:00                 ` William Holmes
1997-12-08  5:00                   ` Doug McDonald
1997-12-09  5:00                     ` mathog
1997-11-30  5:00             ` Mark E. Levy
1997-12-01  5:00               ` Terry Shannon
1997-11-30  5:00                 ` Chris Morgan
1997-12-01  5:00                   ` Uwe Leinberger GSI Darmstadt T. 06159/71-2148 Fax -2155
1997-12-02  5:00                 ` Mark E. Levy
1997-12-04  5:00                   ` Bob DeBula
1997-11-28  5:00     ` Gregg E Economou
1997-11-22  5:00 ` Paul DeMone
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