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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d89e2d213646aec8 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news2.google.com!news1.google.com!news.glorb.com!dedekind.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!194.72.9.35.MISMATCH!news-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Mneson announcement and help request Date: Wed, 2 Jun 2004 19:46:12 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host81-152-56-112.range81-152.btcentralplus.com X-Trace: sparta.btinternet.com 1086205572 16916 81.152.56.112 (2 Jun 2004 19:46:12 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Wed, 2 Jun 2004 19:46:12 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MSMail-Priority: Normal X-Priority: 3 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Xref: controlnews3.google.com comp.lang.ada:1035 Date: 2004-06-02T19:46:12+00:00 List-Id: "Marius Amado Alves" wrote in message news:mailman.37.1086198453.391.comp.lang.ada@ada-france.org... > Ok, so the secret formula is: > > cost(exception check) < cost(condition check) < cost(raising) Quite possibly "much <" cost(raising) There might even be times when cost(exception check) = cost(condition check) or cost(exception check) > cost(condition check) > And of course which idiom is best for algorithm A depends on the nature > and casuistics of A. Finding the critical algorithms and determining > these properties for each one is the hard work now. Absolutely but for some systems it might just be worth doing (particularly hard real-time systems). > In the ASCLWG discussion I didn't intend to demonstrate past the case at > hand then, namely the first two costs above. Maybe I was blissfully > ignorant of the third. > > Now I'll have one more hint next time I find some Mneson function slow. > > Thanks for the byte :-) Your welcome! :-) Cheers -- Martin