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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,93a8020cc980d113 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!y80g2000hsf.googlegroups.com!not-for-mail From: "Harald Korneliussen" Newsgroups: comp.lang.ada Subject: Re: What is wrong with Ada? Date: 13 Apr 2007 01:55:59 -0700 Organization: http://groups.google.com Message-ID: <1176454559.901200.34300@y80g2000hsf.googlegroups.com> References: <1176150704.130880.248080@l77g2000hsb.googlegroups.com> <461B52A6.20102@obry.net> <461BA892.3090002@obry.net> <82dgve.spf.ln@hunter.axlog.fr> <1176226291.589741.257600@q75g2000hsh.googlegroups.com> <4eaive.6p9.ln@hunter.axlog.fr> NNTP-Posting-Host: 213.184.192.82 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1176454560 8887 127.0.0.1 (13 Apr 2007 08:56:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 13 Apr 2007 08:56:00 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061115 Mandriva/2.0.0.1-4mdv2007.0 (2007.0) Firefox/2.0.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: y80g2000hsf.googlegroups.com; posting-host=213.184.192.82; posting-account=5vUApw0AAADF5Kx_4-L9ZPdL9lZywYoQ Xref: g2news1.google.com comp.lang.ada:14977 Date: 2007-04-13T01:55:59-07:00 List-Id: On Apr 12, 8:47 pm, Robert A Duff wrote: > There is no way to be sure the code is bug free! Not in any language. > Not using testing, nor any other method (including so-called > proof of correctness). > In so-called dependently-typed languages, you can use the type system to ensure the correctness of a program, at least such a program as your primality checker. The type-theorists talk about this curry- howard isomorphism thing, which apparently is an isomorphism between programs and proof. I think the SPARK people would agree that there are indeed methods to assure that code is bug-free, at least to the extent that the specification is bug-free (and even that can to some degree be checked mechanically!). Not to say that it is easy, cheap, or even feasible in very many cases, but don't you underestimate a good type system.