comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Any good package for mathematical function in Ada?
Date: Mon, 1 Jun 2020 12:43:02 +0200
Date: 2020-06-01T12:43:02+02:00	[thread overview]
Message-ID: <rb2m3l$1a2d$1@gioia.aioe.org> (raw)
In-Reply-To: e1f13cec-7398-4bd1-a856-5e5a8107b669@googlegroups.com

On 01/06/2020 01:25, Jerry wrote:

> If the binary you are linking to is in C or Fortran your job as an Ada programmer isn't too bad but if you have never done it, it will take you a while to figure it out. Just remember that Ada is built to do this. I did a complete thick binding for PLplot a few years ago. It was lot of work to make it Ada-friendly but in large part because I didn't know C. And in a smaller part because it seems that programming in a crappy language spawns crappy programming techniques. Some of the things C programmers do are abominable and not required by the language. Sorry for the OT rant.

That is true.

> I really wish Ada had a good binding to at least one of these libraries.

Yes, but it is a lot of work and maintenance. And with mathematical 
functions good binding should take advantage of Ada subtypes, e.g. when 
the documentation says X > 0 and then uses double!

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

  parent reply	other threads:[~2020-06-01 10:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-31 10:46 Any good package for mathematical function in Ada? reinert
2020-05-31 11:26 ` Dmitry A. Kazakov
2020-06-01  8:17   ` reinert
2020-05-31 23:25 ` Jerry
2020-06-01  8:24   ` reinert
2020-06-01 10:19     ` Dmitry A. Kazakov
2020-06-01 10:48       ` Nasser M. Abbasi
2020-06-01 11:34         ` Dmitry A. Kazakov
2020-06-01 11:52           ` Nasser M. Abbasi
2020-06-01 13:37             ` Dmitry A. Kazakov
2020-06-02  1:48             ` Jerry
2020-06-05 22:49           ` Randy Brukardt
2020-06-05 22:54           ` Paul Rubin
2020-06-06  7:06             ` Dmitry A. Kazakov
2020-06-06 13:58               ` AdaMagica
2020-06-01 10:43   ` Dmitry A. Kazakov [this message]
2020-06-02  1:51     ` Jerry
2020-06-03 15:07     ` reinert
replies disabled

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