From: peter@baileynm.com (Peter da Silva)
Subject: Re: Y2038 problems (Re: RT-11/TSX-PLUS Year 2000 Compliant Application Programs)
Date: 1998/10/15 [thread overview]
Message-ID: <7050j4$ict@web.nmti.com> (raw)
In-Reply-To: F0uJ2A.3zo@world.std.com
In article <F0uJ2A.3zo@world.std.com>, Megan <mbg@world.std.com> wrote:
>peter@baileynm.com (Peter da Silva) writes:
>>I've had arguments with people working on DOS and Xenix code, pointing out
>>16-bit dependencies, and then people writing Sun or 386 code, where they
>>had 32-bit dependencies. The integer-size problem shows the same mindset,
>>and it's much much more pervasive than the time_t problem or even the Y2K
>>problem... it just doesn't hit everyone at once.
>I've always had problems with the size dependencies inherent in C.
I haven't found a better language for *avoiding* size dependencies, IF
YOU WRITE YOUR CODE AWARE THAT NOT ALL COMPUTERS HAVE THE SAME WORD SIZE.
In fact the more the language specifies the size of an object, the more
trouble I've had porting code. PL/I, where you specify it down to the bit
level, is among the worst. PL/M and Fortran-IV, where you only specify the
size in terms of words or bytes, are better. In C you can completely
isolate the word size dependencies to a header file where you define your
size-specific types (int32, unsigned16, etc) and let the compiler pick an
appropriate word size for the rest.
Because 99% of the time, the size you want depends on so many other things
that are more closely related to the computing environment than the code
you're working on. Having the default sizes driven by the hardware's
programming model means you don't end up with code that requires multiple
word arithmetic for all your integer calculations (because that's what
you need to run Unisys 1100 code with 36-bit integers on a 32-bit machine)
or having your array indexes have to be rewritten (because all of a sudden
DCL OFFSET BIN(17) isn't enough)...
Good programming in languages that allow you to specify things that tightly
means you end up recreating the equivalent of the C type structure for all
your generic values anyway... having to know the sizes of things that closely
is the special case.
--
In hoc signo hack, Peter da Silva <peter@baileynm.com>
`-_-' "Heb jij vandaag je wolf al geaaid?"
'U`
"Tell init(8) to lock-n-load, we're goin' zombie slaying!"
next prev parent reply other threads:[~1998-10-15 4:00 UTC|newest]
Thread overview: 86+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-01 4:00 RT-11/TSX-PLUS Year 2000 Compliant Application Programs Jerome Fine
1998-10-02 4:00 ` Les LaZar [Zoltech Corp]
1998-10-02 4:00 ` John Wilson
1998-10-02 4:00 ` Stuart Brook
1998-10-03 4:00 ` Mike Haertel
1998-10-03 4:00 ` Roger Ivie
1998-10-03 4:00 ` Stuart Brook
1998-10-03 4:00 ` Les LaZar [Zoltech Corp]
1998-10-03 4:00 ` John Wilson
1998-10-05 4:00 ` Jerome Fine
1998-10-05 4:00 ` Stuart Brook
1998-10-03 4:00 ` J.C.B.Sharp
1998-10-05 4:00 ` MOSES
1998-10-10 4:00 ` ian hammond
1998-10-10 4:00 ` Megan
1998-10-11 4:00 ` ian hammond
1998-10-10 4:00 ` Stuart Brook
1998-10-11 4:00 ` Megan
1998-10-12 4:00 ` Jerome Fine
1998-10-12 4:00 ` billy
1998-10-14 4:00 ` Jerome Fine
1998-10-14 4:00 ` billy
1998-10-15 4:00 ` ian hammond
1998-10-12 4:00 ` Stuart Brook
1998-10-13 4:00 ` Jerome Fine
1998-10-13 4:00 ` Tim Shoppa
1998-10-13 4:00 ` Peter da Silva
1998-10-13 4:00 ` Tim Shoppa
1998-10-14 4:00 ` Peter da Silva
1998-10-14 4:00 ` Y2038 problems (Re: RT-11/TSX-PLUS Year 2000 Compliant Application Programs) Tim Shoppa
1998-10-14 4:00 ` Peter da Silva
1998-10-15 4:00 ` Megan
1998-10-15 4:00 ` Peter da Silva [this message]
1998-10-15 4:00 ` Peter da Silva
1998-10-16 4:00 ` Joel Garry
1998-10-16 4:00 ` Y2038 problems (Re: RT-11/TSX-PLUS Year 2000 Compliant Lee K. Gleason
1998-10-16 4:00 ` TTK Ciar
1998-10-17 4:00 ` Peter da Silva
1998-10-17 4:00 ` Bill Gunshannon
1998-10-17 4:00 ` TTK Ciar
1998-10-17 4:00 ` Stuart Brook
1998-10-18 4:00 ` Chris
1998-10-18 4:00 ` Stuart Brook
1998-10-19 4:00 ` Bad Language, Was: " Chris
1998-10-19 4:00 ` Stuart Brook
1998-10-19 4:00 ` Martin Vorlaender
1998-10-19 4:00 ` Bill Gunshannon
1998-10-17 4:00 ` Peter da Silva
1998-10-19 4:00 ` Bill Gunshannon
1998-10-18 4:00 ` Toon Moene
1998-10-16 4:00 ` Tim Shoppa
1998-10-16 4:00 ` Bob Schor
1998-10-16 4:00 ` Y2038 problems (Re: RT-11/TSX-PLUS Year 2000 Compliant Application Programs) TTK Ciar
1998-10-17 4:00 ` Bill Gunshannon
1998-10-17 4:00 ` TTK Ciar
1998-10-18 4:00 ` Jerome Fine
1998-10-18 4:00 ` Contest: Year 2258 and RT-11 :-) Tim Shoppa
1998-10-18 4:00 ` John Wilson
1998-10-18 4:00 ` Tim Shoppa
1998-10-18 4:00 ` John Wilson
1998-10-18 4:00 ` Tim Shoppa
1998-10-18 4:00 ` John Wilson
1998-10-19 4:00 ` Y2038 problems (Re: RT-11/TSX-PLUS Year 2000 Compliant Application Programs) Bill Gunshannon
1998-10-19 4:00 ` TTK Ciar
1998-10-20 4:00 ` Bill Gunshannon
1998-10-19 4:00 ` Megan
1998-10-16 4:00 ` TTK Ciar
1998-10-15 4:00 ` Megan
1998-10-14 4:00 ` RT-11 Wish List (Re: Y2038 problems (Re: RT-11/TSX-PLUS Year 2000 Compliant Application Programs)) Tim Shoppa
1998-10-15 4:00 ` Bob Schor
1998-10-16 4:00 ` Megan
1998-10-14 4:00 ` RT-11/TSX-PLUS Year 2000 Compliant Application Programs John Wilson
1998-10-14 4:00 ` Peter da Silva
1998-10-17 4:00 ` Stuart Brook
1998-10-17 4:00 ` Jerome Fine
1998-10-13 4:00 ` ian hammond
1998-10-15 4:00 ` Jerome Fine
[not found] ` <36234E4D.9EE26 <F0snp9.691@world.std.com>
1998-10-14 4:00 ` Jerome Fine
1998-10-14 4:00 ` billy
1998-10-16 4:00 ` Joel Garry
1998-10-16 4:00 ` John Wilson
1998-10-16 4:00 ` Stuart Brook
1998-10-17 4:00 ` John Wilson
1998-10-17 4:00 ` Stuart Brook
1998-10-18 4:00 ` Megan
1998-10-14 4:00 ` Megan
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