comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: Example Ada calling Gnu Scientific Library (GSL)
Date: Thu, 30 Mar 2017 05:39:24 -0700 (PDT)
Date: 2017-03-30T05:39:24-07:00	[thread overview]
Message-ID: <b55a38e2-45e0-4a3d-a5cb-8525bde43cdb@googlegroups.com> (raw)
In-Reply-To: <obfndn$j75$1@gioia.aioe.org>

> To me it would be far more difficult because of higher Ada code standards.
> 
> I mean that when writing approximations in Ada the natural goal would be 
> to have the accurate result within the interval of two adjacent machine 
> numbers and also to have generic version for all real types. This is 
> really hard.

Well... why not having a minimum precision requirement ? something like this:
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 
> quality anymore.

Agreed - some Ada programmers have a double standard, and accept a much lower 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 old "1980's home-computing-like" +/- equivalent C code...
_________________________ 
Gautier's Ada programming 
http://gautiersblog.blogspot.com/search/label/Ada 
NB: follow the above link for a valid e-mail address 


  reply	other threads:[~2017-03-30 12:39 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-29  1:29 Example Ada calling Gnu Scientific Library (GSL) Leo Brewin
2017-03-29  7:01 ` gautier_niouzes
2017-03-29  7:23   ` Dmitry A. Kazakov
2017-03-30 12:39     ` gautier_niouzes [this message]
2017-03-30 14:22       ` Dmitry A. Kazakov
2017-03-30 20:44         ` Randy Brukardt
2017-03-31 18:31         ` G.B.
2017-03-31 18:50           ` Dmitry A. Kazakov
2017-03-29  7:19 ` hreba
2017-03-29 20:07   ` Randy Brukardt
2017-04-04 21:25     ` hreba
2017-04-05 16:29       ` Simon Wright
2017-04-05 20:21         ` hreba
2017-04-06  7:30           ` Simon Wright
2017-04-07 18:45             ` hreba
2017-04-08  8:28               ` Simon Wright
2017-04-09 10:57                 ` hreba
2017-04-09 15:17                   ` Simon Wright
2017-04-10  8:53                     ` hreba
2017-04-10  9:47                       ` Dmitry A. Kazakov
2017-04-10 15:39                         ` hreba
2017-04-10 17:16                           ` Dmitry A. Kazakov
2017-04-10 17:43                           ` Simon Wright
2017-04-10 15:44                       ` Simon Wright
2017-04-11 17:31                         ` hreba
2017-04-11 18:45                           ` Simon Wright
2017-04-11 19:46                             ` Dmitry A. Kazakov
replies disabled

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