comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: 64-bit unsigned integer?
Date: Thu, 1 Mar 2018 22:15:26 +0100
Date: 2018-03-01T22:15:26+01:00	[thread overview]
Message-ID: <p79qhc$7vu$1@gioia.aioe.org> (raw)
In-Reply-To: 73e69dd3-3195-48c7-9b9b-f1a4bb7d6fde@googlegroups.com

On 2018-03-01 21:32, Dan'l Miller wrote:
> Dan'l Miller wrote:
>>> Why would they be allocated as the humanly-imaginable worst-case for usage of the library?
> Dmitry Kazakov wrote:
>> Because the upper bound is exactly that, the humanly-imaginable worst case.
> 
> No, the upper bound of a bounded integer (or bounded string for that matter) is what I declared it to be in my own app-domain source code.

You are a human and it is your imagination which gave you the bound value.

> Dan'l Miller wrote:
>>> Bounded textual strings are not allocated as the maximum universally-conceivable textual string length of megabytes long.  Bounded simply means:  pick a modest upper bound and stick to it, say, 128-bit integer for bounded bignum or 32-character string for bounded textual string.
> Dmitry Kazakov wrote:
>> Why 128 and not 256 or 1056781?
> 
> Because I declared it to be a 128-bit bounded bignum at this place in my app-domain source code for some register in my main processor, and I declared some other 256-bit bounded bignums at some other place in my app-domain source code for some other register in my GPU.  And in this application, the calculations on the 128-bit bounded bignums never utilize the 256-bit bounded bignums, and the calculations on the 256-bit bounded bignums never utilize the 128-bit bounded bignums; they are disjoint usages.  Why does bounded mean for you “one size fits all for all human beings on the planet”?

Bounded numbers will be a generic package thus you will not be able to 
intermix differently bounded numbers even if they are semantically same. 
You will not be able to convert between such types. You will have no 
literals, no universal integer expressions, no way to pass it to a 
generic numeric package, no way to have it as discriminant (large 
discriminants are useful in some cases) etc.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2018-03-01 21:15 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-25 12:30 64-bit unsigned integer? MM
2018-02-25 12:41 ` Dmitry A. Kazakov
2018-02-25 12:54   ` MM
2018-02-25 13:23     ` Dmitry A. Kazakov
2018-02-25 13:59       ` MM
2018-02-25 14:20         ` Dmitry A. Kazakov
2018-02-25 15:34           ` MM
2018-02-25 16:35     ` Jeffrey R. Carter
2018-02-25 16:36 ` Anh Vo
2018-02-25 17:31   ` MM
2018-02-26 23:19     ` Randy Brukardt
2018-02-26 23:33       ` MM
2018-02-28 10:17       ` Paul Rubin
2018-02-28 10:39         ` J-P. Rosen
2018-02-28 10:59           ` Dmitry A. Kazakov
2018-02-28 23:20         ` Randy Brukardt
2018-03-01  5:47           ` Paul Rubin
2018-03-01  8:16             ` Niklas Holsti
2018-03-01  8:35               ` Simon Wright
2018-03-01  8:47               ` Dmitry A. Kazakov
2018-03-01 18:15                 ` Dan'l Miller
2018-03-01 19:10                   ` Dmitry A. Kazakov
2018-03-01 19:22                     ` Dan'l Miller
2018-03-01 19:59                       ` Dmitry A. Kazakov
2018-03-01 20:32                         ` Dan'l Miller
2018-03-01 21:15                           ` Dmitry A. Kazakov [this message]
2018-03-01 22:23                             ` Randy Brukardt
2018-03-01 23:50                             ` Robert Eachus
2018-03-01 20:06                     ` Niklas Holsti
2018-03-01 22:04               ` Randy Brukardt
2018-02-26  6:45 ` Robert Eachus
2018-02-27 16:40   ` Dan'l Miller
2018-02-27 17:18     ` J-P. Rosen
2018-02-27 18:17       ` Dan'l Miller
2018-02-28  3:03         ` Robert Eachus
2018-02-28  6:41         ` J-P. Rosen
replies disabled

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