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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,35bd0e7237228bcd X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: Spark and the Ada numerics annex Date: Tue, 10 Aug 2010 14:09:24 +0200 Organization: Ada At Home Message-ID: References: <064d3276-769c-46f7-9590-77a90af589cb@t20g2000yqa.googlegroups.com> NNTP-Posting-Host: anOtUalzMUZHasssFqT+2w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.60 (Win32) Xref: g2news1.google.com comp.lang.ada:13052 Date: 2010-08-10T14:09:24+02:00 List-Id: Le Tue, 10 Aug 2010 10:48:30 +0200, Ada novice a= = =E9crit: > My interests are purely in Scientific numerical programming SPARK will applies, it does not target a specific application area. Whil= e = you may feel it is less handy in some than in some others. If you ever = feel SPARK looks too much stupid for some package or method, then may ju= st = hide it from SPARK and try to comment the best way ever possible too giv= e = a proof that although not checked by SPARK, this "should be good". > The good things about SPARK is that it helps to make checks and hence > get the programming right. Is it recommended to use SPARK even for > very simple programs? Not only this is possible, this is also recommended in some way. The = smaller an application is, the less pain you will have to prove its = correctness. SPARK does not take part in a reification process (like = things would go with the B-method), so there is a lot of things which wi= ll = seems obvious to you; SPARK may not know right away about you applicatio= n. = For this reason, this may be better to keep it simple. Don't forget you = = can Hide if ever required. procedure Your_Method is --# hide Your_Method ... Your proses comes here ... ... Your informal comments proving you designed it right comes here .= .. end Random; Just don't abuse it. -- There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.