From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Any good package for mathematical function in Ada? Date: Fri, 5 Jun 2020 17:49:45 -0500 Organization: JSA Research & Innovation Message-ID: References: <45af26dc-c35f-4a01-8115-7b30021cc064@googlegroups.com> <835a8c6a-54a8-4157-bcf1-e889d18b1b46@googlegroups.com> Injection-Date: Fri, 5 Jun 2020 22:49:48 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="32258"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:58978 Date: 2020-06-05T17:49:45-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:rb2p52$qvl$1@gioia.aioe.org... ... > As for GMP specifically, I think that arbitrary precision numeric types > must be an integral part of Ada. Unfortunately, this would introduce same > mess Unbounded_String did. So, for now, I would not push for them until > the language type system mature to accommodate them smoothly. You're a little late for that. See Big_Integer: http://www.ada-auth.org/standards/2xrm/html/RM-A-5-6.html and Big_Real: http://www.ada-auth.org/standards/2xrm/html/RM-A-5-7.html Since Ada 202x has user-defined literals and user-defined Image, this is almost as good as a built-in number. The only downside would be using them in generics (like GEF), but most of those implementations assume a maximum precision that's not true for these so they'd need rewriting anyway. Randy.