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,93a8020cc980d113 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.247.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!not-for-mail Newsgroups: comp.lang.ada Subject: Re: What is wrong with Ada? From: "Peter C. Chapin" 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> <1rbtw92apxpl1.1ednvo8v6oiq8$.dlg@40tude.net> Organization: Kelsey Mountain Software Message-ID: User-Agent: Xnews/5.04.25 Date: 12 Apr 2007 19:54:05 GMT NNTP-Posting-Host: 5aeae476.news.sover.net X-Trace: DXC=2RE]OPUADbBaJ39B?P[2EIK6_LM2JZB_CfI_Gg5h:DgE3?@`i3kGa5KeCg:\hB?EAON6 > But the number of program states is finite, or else the program is wrong > anyway? In a Turing complete programming language it is possible to write programs with unbounded amount of state. Indeed... this is the essence of Turing completeness. P.S. If I understand SPARK properly, the SPARK subset of Ada is not Turning complete because for any given program there is a bound on how much state information the program might use. As a result the halting problem is decidable for SPARK programs. This is a consequence of the lack of dynamic allocation and recursion. Of course useful programs can still be written with SPARK despite its theoretical incompleteness. I imagine that making SPARK less powerful than a Turing machine is the whole point of the restrictions it imposes. Turing machines are hard to analyze. Peter