comp.lang.ada
 help / color / mirror / Atom feed
From: "Tarjei T. Jensen" <tarjei.jensen@kvaerner.com>
Subject: Re: OS Bindings (was: Where is the elusive jump command?)
Date: 2000/04/15
Date: 2000-04-15T00:00:00+00:00	[thread overview]
Message-ID: <8da01j$62r8@ftp.kvaerner.com> (raw)
In-Reply-To: 8d9qa8$3ff$1@nnrp1.deja.com


Robert Dewar wrote
>Tarjei says
>
>"if you implement n-bit arithmetic, then you must implement
>full range unsigned n-bit arithmetic with overflow checking."
>
>AARGH! the Ada 83 mentality at work again. The mentality that
>says, you don't need to implement X, but if you implement X
>you must implement Y.

Not really. In a general modern computing environment these days it is a
perfectly reasonable requirement to be able to handle 64 bit unsigned
arithmetic with runtime checking if the compiler supports 64 bits integers. If
it only supports 32bit integers, then the requirement stands for 32bit unsigned
integers.

>I trust that Tarjei understands that it would be a lot of
>extra work to implement this new form of checked arithmetic.
>The consequence of Tarjei's suggested change might well be
>that compilers decide, "oh well, 64-bit integer arithmetic
>is too much of a pain anyway", and simply don't do it at all.

The problem does not go away. All you have done is scaled it down to 32bit. The
general problem persists. And you will have to explain why it would be a lot of
extra work if I'm to believe you. And I expect that you should prepare yourself
for a similar problem when gnat supports 128 bit integers.

>Suppose this "glaring defect" were fixed in the RM.
>
>Then GNAT would have a lot of extra work to do, maybe we would
>do it, but maybe we would simply remove 64-bit arithmetic
>completely (actually put it under an extension switch) so it
>was not considered part of the core.

That would be excellent marketing :-)

>We have unsigned 64-bit arithmetic similar to the capabilities
>of C (well at least GNU-C) and Java in Ada. Yes, that's not
>ideal, and for many applications a range checked 64-bit range
>would be better. But please don't let best be the enemy of good.


Perhaps it should be possible to do it in stages and still conform. E.g. first
be able to specify it, manipulate it and use it in arithmetic expressions. I
believe that the requirement is there regardless of how much work it is. As
times passes the more it becomes neccessary: Computers do not shrink and files
and disks become larger.

BTW Where I work we have trouble with 32 bit limits. Our Oracle exports have to
go through a compression filter (gzip) because otherwise the file becomes too
large for the file system and the export fails.

Greetings,








  reply	other threads:[~2000-04-15  0:00 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-21  0:00 Where is the elusive jump command? dis90072
2000-03-21  0:00 ` Stanley R. Allen
2000-03-21  0:00 ` Nicolas Brunot
2000-03-21  0:00 ` Nicolas Brunot
2000-03-27  0:00 ` Robert A Duff
2000-03-28  0:00   ` Ken Garlington
2000-03-28  0:00     ` Robert Dewar
2000-03-28  0:00       ` Ken Garlington
2000-03-28  0:00         ` Marin D. Condic
2000-03-28  0:00           ` Robert Dewar
2000-03-29  0:00             ` Richard D Riehle
2000-03-29  0:00               ` Robert Dewar
2000-03-30  0:00                 ` Richard D Riehle
2000-04-01  0:00                   ` Robert A Duff
2000-04-02  0:00                     ` Robert Dewar
2000-04-02  0:00                     ` Richard D Riehle
2000-04-02  0:00                       ` Robert Dewar
2000-04-02  0:00                       ` Robert Dewar
2000-03-30  0:00                 ` Alfred Hilscher
2000-04-01  0:00                   ` Robert Dewar
2000-04-04  0:00                     ` Alfred Hilscher
2000-04-05  0:00                     ` Ole-Hjalmar Kristensen
2000-04-05  0:00                       ` Larry Kilgallen
2000-04-06  0:00                         ` Ole-Hjalmar Kristensen
2000-04-06  0:00                           ` OS Bindings (was: Where is the elusive jump command?) Larry Kilgallen
2000-04-06  0:00                             ` Ole-Hjalmar Kristensen
2000-04-06  0:00                             ` Robert Dewar
2000-04-07  0:00                               ` Tarjei T. Jensen
2000-04-09  0:00                                 ` Robert Dewar
2000-04-10  0:00                                   ` Tarjei T. Jensen
2000-04-12  0:00                                     ` Robert Dewar
2000-04-12  0:00                                       ` Tarjei T. Jensen
2000-04-12  0:00                                         ` Robert Dewar
2000-04-13  0:00                                           ` Tarjei T. Jensen
2000-04-15  0:00                                             ` Robert Dewar
2000-04-15  0:00                                               ` Tarjei T. Jensen
2000-04-12  0:00                                       ` Robert A Duff
2000-04-12  0:00                                         ` Tarjei T. Jensen
2000-04-12  0:00                                           ` Robert Dewar
2000-04-12  0:00                                           ` Robert Dewar
2000-04-12  0:00                                           ` Robert A Duff
2000-04-12  0:00                                             ` Robert Dewar
2000-04-12  0:00                                               ` Robert A Duff
2000-04-15  0:00                                                 ` Robert Dewar
2000-04-15  0:00                                                   ` Gisle S�lensminde
2000-04-15  0:00                                                 ` Robert Dewar
2000-04-13  0:00                                               ` Tarjei T. Jensen
2000-04-13  0:00                                                 ` Gisle S�lensminde
2000-04-12  0:00                                             ` Florian Weimer
2000-04-13  0:00                                             ` Tarjei T. Jensen
2000-04-13  0:00                                               ` Robert A Duff
2000-04-18  0:00                                                 ` Tarjei T. Jensen
2000-04-15  0:00                                               ` Robert Dewar
2000-04-15  0:00                                                 ` Tarjei T. Jensen [this message]
     [not found]                             ` <eisner comp.lang.ada:53670>
2000-04-06  0:00                               ` Larry Kilgallen
2000-04-06  0:00                                 ` Robert Dewar
2000-04-08  0:00                                   ` nickerson
2000-04-09  0:00                                     ` Robert Dewar
2000-03-29  0:00             ` Where is the elusive jump command? Marin D. Condic
2000-03-29  0:00               ` Gary Scott
2000-03-29  0:00                 ` Robert Dewar
2000-03-30  0:00                   ` Gautier
2000-03-30  0:00                     ` Gary Scott
2000-03-30  0:00                       ` David Starner
2000-03-30  0:00                         ` William B. Clodius
2000-03-30  0:00                       ` Gautier
2000-03-30  0:00                   ` David Starner
2000-03-30  0:00                     ` Marin D. Condic
2000-03-30  0:00                       ` Gary Scott
2000-03-31  0:00                         ` Tarjei T. Jensen
2000-03-31  0:00                           ` Larry Kilgallen
2000-03-31  0:00                             ` Gary Scott
2000-03-30  0:00                       ` Samuel T. Harris
2000-03-30  0:00                       ` Dan Nagle
2000-03-30  0:00                         ` Samuel T. Harris
2000-03-31  0:00                           ` Gisle S�lensminde
2000-03-30  0:00                         ` David Starner
2000-03-30  0:00                       ` Larry Kilgallen
2000-03-31  0:00                       ` Tarjei T. Jensen
2000-04-12  0:00                         ` Robert A Duff
2000-04-12  0:00                           ` Stanley R. Allen
2000-04-12  0:00                             ` Samuel T. Harris
2000-04-13  0:00                               ` Stanley R. Allen
2000-04-14  0:00                                 ` Samuel T. Harris
2000-04-14  0:00                                   ` BASIC->Ada, was " tmoran
2000-04-15  0:00                                 ` Robert Dewar
2000-04-15  0:00                             ` Robert Dewar
2000-04-13  0:00                           ` Tarjei T. Jensen
2000-03-31  0:00                       ` Gisle S�lensminde
2000-03-31  0:00                       ` Gautier
2000-03-30  0:00                   ` Gary Scott
2000-03-30  0:00               ` Alfred Hilscher
2000-03-28  0:00   ` Dale Stanbrough
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox