comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
Subject: Re: Bignum modular types in Ada95
Date: 1998/01/28
Date: 1998-01-28T00:00:00+00:00	[thread overview]
Message-ID: <01bd2b95$9bf9c200$64fc82c1@xhv46.dial.pipex.com> (raw)
In-Reply-To: 01bd2b92$b639c1e0$64fc82c1@xhv46.dial.pipex.com


Addendum

I have always assumed (perhaps wrongly!) that decimal types would be
implemented on many machines in BCD (packed ot not), in an arbitrary number
of multiple machine words (however many are required).  In these cases,
something like bignums are supported -- or easily supportable -- anyway.

On the other hand, one might argue that decimal types should be implemented
in the same way as fixed types, on the grounds that this implementation
will have been chosen for maximum performance (rather than flexibility, or
the requirements of the Information Systems special annex).

Perhaps a sensible compromise would be for compiler providers to adopt the
convention that fixed types are implemented to make the best out of the
underlying hardware, but decimal types are implemented for maximum
flexibility and consistency of operation?

Of course, that doesn't preclude the provision of built-in bignum
capability for fixed types: these would undoubtedly be most suitable for
the cryptographic calculations Markus was talking about.

[editor's note: slightly late night post after a whiskey :-]

-- 

Nick Roberts





  reply	other threads:[~1998-01-28  0:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-27  0:00 Bignum modular types in Ada95 Markus Kuhn
1998-01-28  0:00 ` Nick Roberts
1998-01-28  0:00   ` Nick Roberts [this message]
1998-02-01  0:00     ` Robert Dewar
1998-02-07  0:00       ` Nick Roberts
1998-02-09  0:00         ` Robert Dewar
1998-01-28  0:00   ` Larry Kilgallen
1998-01-28  0:00 ` Markus Kuhn
1998-01-28  0:00   ` Brian Rogoff
1998-01-29  0:00     ` Markus Kuhn
1998-01-30  0:00       ` Brian Rogoff
1998-02-01  0:00   ` Robert Dewar
1998-02-02  0:00     ` Tarjei T. Jensen
1998-02-02  0:00       ` Robert Dewar
1998-02-03  0:00         ` Tarjei T. Jensen
1998-02-04  0:00           ` Keith Thompson
     [not found]   ` <EnIIvn.3zr@world.std.com>
1998-01-29  0:00     ` Markus Kuhn
1998-01-31  0:00       ` Nick Roberts
1998-01-29  0:00     ` Mats Weber
     [not found]       ` <EnKEtu.KGp@world.std.com>
1998-01-30  0:00         ` Markus Kuhn
1998-01-30  0:00           ` Mats Weber
1998-01-30  0:00             ` Markus Kuhn
1998-01-31  0:00               ` Nick Roberts
1998-02-01  0:00           ` Robert Dewar
1998-01-30  0:00         ` Mats Weber
1998-02-01  0:00           ` Robert Dewar
1998-02-01  0:00           ` Robert Dewar
1998-01-31  0:00         ` Nick Roberts
1998-02-01  0:00         ` Robert Dewar
1998-02-01  0:00     ` Robert Dewar
1998-01-28  0:00 ` Dmitriy Anisimkov
replies disabled

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