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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,901cf02e3fdf0c96,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!w3g2000hsg.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: SI Units - has Ada missed the boat? Date: Sun, 08 Jul 2007 08:13:39 -0700 Organization: http://groups.google.com Message-ID: <1183907619.564482.240470@w3g2000hsg.googlegroups.com> NNTP-Posting-Host: 81.154.91.250 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1183907619 15791 127.0.0.1 (8 Jul 2007 15:13:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 8 Jul 2007 15:13:39 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/522.12.1 (KHTML, like Gecko) Version/3.0.1 Safari/522.12.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: w3g2000hsg.googlegroups.com; posting-host=81.154.91.250; posting-account=SUPfBg0AAAD2c27sxTjOFS-ntqB08gQH Xref: g2news1.google.com comp.lang.ada:16427 Date: 2007-07-08T08:13:39-07:00 List-Id: One of my pet hopes for Ada2005 was that it would include some method of automatically checking systems of units at compilation time or with minimal run-time checking. Alas it was voted down due to time pressures and technical issues (see http://www.ada-auth.org/ai-files/minutes/min-0403.html#AI324 and http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00324.TXT?rev=1.3). C++ now has the Boost library (see http://svn.boost.org/trac/boost/browser/sandbox/units) with zero-runtime cost (or at least when optimisation is switched on). And now Java has a proposal for a similar beast (see https://jsr-275.dev.java.net/files/documents/4333/34956/jsr-275.pdf). I've been playing around with the C++ Boost library and it seems quite good - at least for the sort of things I would use it for (embedded avionics). Is anyone still working on an Ada solution to this? Cheers -- Martin