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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.160.103 with SMTP id u39mr2443920pgn.14.1490877564999; Thu, 30 Mar 2017 05:39:24 -0700 (PDT) X-Received: by 10.157.51.141 with SMTP id u13mr614808otc.15.1490877564952; Thu, 30 Mar 2017 05:39:24 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!y18no2047890itc.0!news-out.google.com!j72ni1177itb.0!nntp.google.com!y18no2042572itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 30 Mar 2017 05:39:24 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1205:5055:3750:c1ed:8787:652a:248a; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1205:5055:3750:c1ed:8787:652a:248a References: <2b035819-e55e-4805-9ff1-a2cec09f13e0@googlegroups.com> <1a26bdd6-998c-4ea0-aee5-a6a4dfecb741@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Example Ada calling Gnu Scientific Library (GSL) From: gautier_niouzes@hotmail.com Injection-Date: Thu, 30 Mar 2017 12:39:24 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:46503 Date: 2017-03-30T05:39:24-07:00 List-Id: > To me it would be far more difficult because of higher Ada code standards= . >=20 > I mean that when writing approximations in Ada the natural goal would be= =20 > to have the accurate result within the interval of two adjacent machine= =20 > numbers and also to have generic version for all real types. This is=20 > really hard. Well... why not having a minimum precision requirement ? something like thi= s: generic type Real is digits <>; package Special_functions is ... end Special_functions; package body Special_functions is ... begin ... [raise an exception here if precision is not enough] end Special_functions; > When using binding you basically wash your hands and do not care about=20 > quality anymore. Agreed - some Ada programmers have a double standard, and accept a much low= er one for the C code used for binding. Sometimes they would complain about= formatting of comments in Ada code and and just ignore the mess of some ol= d "1980's home-computing-like" +/- equivalent C code... _________________________=20 Gautier's Ada programming=20 http://gautiersblog.blogspot.com/search/label/Ada=20 NB: follow the above link for a valid e-mail address=20