Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'url:blog': 0.09; 'subject:language': 0.09; 'terry': 0.09; 'language': 0.14; 'arrays,': 0.16; 'awk': 0.16; 'conditional': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'looping': 0.16; 'loops': 0.16; 'non-trivial': 0.16; 'operation,': 0.16; 'presume': 0.16; 'reedy': 0.16; 'sed': 0.16; 'subject:programming': 0.16; 'wrote:': 0.17; 'explicit': 0.22; 'implicit': 0.22; 'machine': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'implement': 0.32; 'to:addr:python- list': 0.33; 'pm,': 0.35; 'subject:?': 0.35; 'something': 0.35; 'received:org': 0.36; 'message-id:@gmail.com': 0.36; 'subject:: ': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'life,': 0.62; 'show': 0.63; 'covers': 0.65; 'harder': 0.65; 'recursion,': 0.84; 'execution,': 0.91 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sat, 09 Feb 2013 19:55:53 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Is Python programming language? References: <1360328631.24677.YahooMailClassic@web125203.mail.ne1.yahoo.com> <6lmdh8t7osnvjj5v5vnrav8q5anum6ln3q@4ax.com> <5116E168.6030707@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360464961 news.xs4all.nl 6906 [2001:888:2000:d::a6]:59126 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38546 On 02/09/2013 07:40 PM, Terry Reedy wrote: > If the language has arrays, conditional execution, and explicit (while) > loops or recursion, you can be pretty sure it is Turing complete. I > presume this covers awk and bash. Something like the game of Life, where > the looping in implicit in the operation, is much harder to show Turing > complete. I suspect sed is non-trivial also. All you have to do to show a language is turing complete is to implement a turing machine in it. Here's one in sed that I found: http://www.catonmat.net/blog/proof-that-sed-is-turing-complete/