comp.lang.ada
 help / color / mirror / Atom feed
From: "Dan'l Miller" <optikos@verizon.net>
Subject: Re: SI Units Checked and Unchecked
Date: Thu, 9 Aug 2018 08:19:30 -0700 (PDT)
Date: 2018-08-09T08:19:30-07:00	[thread overview]
Message-ID: <f24ebff7-7892-4014-b3cb-27ebc510d4ba@googlegroups.com> (raw)
In-Reply-To: <b4a44c49-b237-49bc-ba86-0ed73660ebb5@googlegroups.com>

On Thursday, August 9, 2018 at 9:31:38 AM UTC-5, AdaMagica wrote:
> Am Donnerstag, 9. August 2018 15:47:47 UTC+2 schrieb Dan'l Miller:
> > I would be interested in a summary (or even better, an AI) that itemizes all the core-language
> > obstacles in currently-standardized Ada to moving all the incompatible usages of units to be
> > compile-time errors instead of raising exceptions.
> 
> Dan'l, just go to
> http://www.christ-usch-grein.homepage.t-online.de/Ada/Dimension/Dimension.html
> there you'll find a summary of attempts to use dimensional arithmetics in Ada.

Thank you!  (for both the webpage's useful analysis as well as the link to it)  This will be worth studying deeply.  I am always looking for why C++ ever pulls ahead of Ada on some strong-typing topics.  Compile-time enforcement of units of measure is one of them.  Meticulous typing (especially compile-time enforcement of strong typing) is supposed to be Ada's crowning achievement; C++ or any recent upstart language (e.g., Rust) is not supposed to be able to threaten to usurp the throne from the king on typing-enforcement topics.

(C++ gets an “Oh, nevermind, go forth & prosper” response from me when I track a capability down to needing a Turing-complete template engine to enact the capability only via metatemplate-programming functional-language interpreter in the compiler.  Ada2027 needs a bona fide Turing-complete compile-time source-code generator, not Turing-complete generics as a poor-man's substitute, as C++ has.)


  reply	other threads:[~2018-08-09 15:19 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-09 12:44 SI Units Checked and Unchecked AdaMagica
2018-08-09 13:47 ` Dan'l Miller
2018-08-09 14:07   ` Dmitry A. Kazakov
2018-08-09 15:03     ` Dan'l Miller
2018-08-09 15:51       ` Dmitry A. Kazakov
2018-08-09 17:32         ` Dan'l Miller
2018-08-09 19:42           ` Dmitry A. Kazakov
2018-08-09 22:12             ` Dan'l Miller
2018-08-10  6:45               ` Dmitry A. Kazakov
2018-08-10 13:59                 ` Dan'l Miller
2018-08-10 14:50                   ` Dmitry A. Kazakov
2018-08-10 17:04                     ` Dan'l Miller
2018-08-10 17:34                       ` Dmitry A. Kazakov
2018-08-11  4:42                         ` Paul Rubin
2018-08-11  5:46                           ` Dmitry A. Kazakov
2018-08-11 19:57                             ` Paul Rubin
2018-08-11 21:01                               ` Dmitry A. Kazakov
2018-08-09 18:47       ` Paul Rubin
2018-08-09 19:13         ` Dan'l Miller
2018-08-09 14:31   ` AdaMagica
2018-08-09 15:19     ` Dan'l Miller [this message]
2018-08-09 16:07 ` Jeffrey R. Carter
2018-08-09 17:41   ` AdaMagica
2018-08-09 20:34     ` Jeffrey R. Carter
2018-08-10  9:13       ` AdaMagica
2018-08-10 20:20         ` Jeffrey R. Carter
2018-08-13  8:57           ` AdaMagica
2018-08-20 17:55             ` AdaMagica
2019-09-04 14:20 ` Shark8
2019-09-04 17:11   ` AdaMagica
2019-09-06 21:01     ` Shark8
2020-08-13 12:24       ` SI Units Checked and Unchecked - Completela overhauled version AdaMagica
  -- strict thread matches above, loose matches on Subject: below --
2003-02-05  7:03 SI Units Checked and Unchecked Grein, Christoph
replies disabled

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