comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: What about big integers in Ada 2005?
Date: Tue, 4 Oct 2005 10:25:40 +0200
Date: 2005-10-04T10:25:39+02:00	[thread overview]
Message-ID: <1x4pe4pv41qsn$.m5c5jawjqcpq.dlg@40tude.net> (raw)
In-Reply-To: 5mo0f.529$B14.97@newssvr11.news.prodigy.com

On Tue, 04 Oct 2005 05:24:17 GMT, adaworks@sbcglobal.net wrote:

> "Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message
> news:imsuj1h8vevg4un71rmh0nc41pnee5ihjl@4ax.com...
>>
>> Of course, my college mainframe actually had a 32-digit hardware BCD
>> ALU (which failed one term -- COBOL classes were stuck, but FORTRAN,
>> using integer and floating ALU hardware, proceeded apace).
>>
>> I'll admit I'm somewhat surprised GNAT (and likely others)
>> implemented fixed-point math using scaled integers -- rather than a BCD
>> package.
>> -- 
> I wonder if anyone has implemented a BCD package?  Also, in COBOL,
> programmers routinely design using packed decimal.   I don't know of any
> corresponding package in Ada.   I suspect this is one of the many reasons
> Ada has consistently failed to win any support in the information systems
> world.
>
> Unfortunately, the Information Systems annex falls short of what COBOL
> programmers really want.   Perhaps we could re-design the Information
> Systems Annex someday to bring it into conformity with common IS
> practice.  Probably too late.   The damage is already done.
> 
> Also, I am teaching a class in functional programming languages this Quarter
> and wrote a little factorial program in Scheme that shows that we can do
> 
>             (factorial 45)
> 
> and get a perfectly good answer.   Anyone know of an Ada package that
> can do that?

Curious, why somebody would like to use BCD for 45!? I cannot imagine any
use of BCD except than to speed up conversions to ASCII, which is not an
issue in these days. But even so, whoever is expected to read 45! on the
screen, he can always say - I did, though can't remember the 25th digit
from the left! (:-)) 

[decimal fixed point numbers is a different issue]

But I agree that Ada should have Universal_Integer or its equivalent
available for users. And this time one should not repeat errors made with
Unbounded_String!

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



  parent reply	other threads:[~2005-10-04  8:25 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-15 17:06 What about big integers in Ada 2005? jtg
2005-09-15 17:26 ` Pascal Obry
2005-09-15 17:30   ` Martin Dowie
2005-09-15 17:26 ` Martin Krischik
2005-09-15 19:37   ` Martin Dowie
2005-09-15 21:08     ` Larry Kilgallen
2005-09-15 20:33   ` jtg
2005-09-15 21:10     ` Larry Kilgallen
2005-09-18  0:46   ` adaworks
2005-09-30 17:41     ` Robert A Duff
2005-09-30 20:18       ` Jeffrey R. Carter
2005-10-02  0:27       ` adaworks
     [not found]         ` <imsuj1h8vevg4un71rmh0nc41pnee5ihjl@4ax.com>
2005-10-02 10:33           ` Martin Krischik
2005-10-02 16:20             ` adaworks
2005-10-04  5:24           ` adaworks
2005-10-04  7:22             ` tmoran
2005-10-04  8:25             ` Dmitry A. Kazakov [this message]
2005-10-04 11:57               ` Simon Clubley
2005-10-04 16:10                 ` Robert A Duff
2005-10-04 17:24                   ` Simon Clubley
2005-10-04 19:44                     ` Robert A Duff
2005-10-04 13:46               ` adaworks
2005-10-04 16:38                 ` Robert A Duff
2005-10-04 16:52                   ` Martin Dowie
2005-10-04 17:16                     ` Robert A Duff
2005-10-04 13:50               ` adaworks
2005-10-04 14:59                 ` Larry Kilgallen
2005-10-04 16:03                 ` Robert A Duff
2005-10-04 18:56                   ` adaworks
2005-10-10  5:36                     ` Dave Thompson
2005-10-14  0:31                       ` adaworks
2005-10-06 14:21             ` Adrian Hoe
2005-10-07  6:48               ` Martin Krischik
2005-10-02  0:48   ` Brian May
2005-10-02 10:28     ` Martin Krischik
2005-10-02 10:52       ` Brian May
2005-10-02 15:12       ` Simon Wright
2005-10-02 17:11         ` Martin Dowie
2005-09-16 14:33 ` gautier_niouzes
2005-09-17  3:43   ` Craig Carey <research@ijs.co.nz>
replies disabled

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