Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.053 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'compiler': 0.07; 'logic': 0.09; 'subject:while': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.11; 'cc:name:python list': 0.16; 'different,': 0.16; 'everybody.': 0.16; 'formally': 0.16; 'ha!': 0.16; 'lambda': 0.16; 'magic': 0.16; 'real.': 0.16; 'shortcut': 0.16; 'subject:recursion': 0.16; 'substituted': 0.16; 'pfxlen:0': 0.19; 'machine': 0.22; 'cc:addr:python.org': 0.22; 'creating': 0.23; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'points': 0.29; "doesn't": 0.30; '(like': 0.30; 'involving': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'mini': 0.31; 'pan': 0.31; 'spirit': 0.31; 'anyone': 0.31; 'noticed': 0.34; 'good.': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'scheme': 0.36; 'science,': 0.36; 'doing': 0.36; 'two': 0.37; 'how': 0.40; 'catch': 0.60; 'challenge': 0.61; 'numbers': 0.61; 'digital': 0.61; 'advanced': 0.63; 'field': 0.63; 'talking': 0.65; 'between': 0.67; 'glad': 0.83; 'about?': 0.84; 'confusing': 0.84; 'effects,': 0.84; 'hardly': 0.84; 'concluded': 0.91; 'magical': 0.91; 'thesis': 0.91; 'washington': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=R2MrC3Z4EkpxUW9fkgRLhWEVIg1MyCeGp4OZfHM/Ng8=; b=km2kKmpLsXpquZF6L6Q7SH7AgNfUzofOHhEpNdkFJzAFe7GRNoYKWTPCURRs95MSde UcPPI75pxa/tfLzzVj80SCbKqjkvKGjT194X2NpugK0ybYilZ+Kir13PQQs1/F6avN7W Mg+J2IeiKHD8TxwfZVCXSoqAEwk6fFGJlhro6ajf8xetlpoW4/CqwTgGuBbXPvVapfxX g+nEMlVYuBWqlrD+xfhn2RU385XrZe+rJViEn9EEL7N6xjdeJ4UBivnuqkFAAIGP0tjP lLH8Ko4cIE1f1Lzi3gKU7N7a5q2T4nfDNsMKX4NmNHXhsH5pHYvNjuEnSUA0csP5YFNC FUTw== MIME-Version: 1.0 X-Received: by 10.180.20.163 with SMTP id o3mr21755811wie.1.1381203266500; Mon, 07 Oct 2013 20:34:26 -0700 (PDT) In-Reply-To: References: <87had0axxy.fsf@dpt-info.u-strasbg.fr> <524C80B6.3010204@unistra.fr> <87li292wnt.fsf@dpt-info.u-strasbg.fr> <878uy52ea0.fsf@dpt-info.u-strasbg.fr> <5252F610.9040403@rece.vub.ac.be> Date: Mon, 7 Oct 2013 20:34:26 -0700 Subject: Re: Tail recursion to while iteration in 2 easy steps From: Mark Janssen To: Piet van Oostrum Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1381203273 news.xs4all.nl 15945 [2001:888:2000:d::a6]:40834 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56345 >> Yeah, and this is where two models of computation have been conflated, >> creating magical effects, confusing everybody. I challenge you to get >> down to the machine code in scheme and formally describe how it's >> doing both. > > Which two models of computation are you talking about? And what magica; effects? Well, I delineate all computation involving predicates (like lambda calculus) between those using digital logic (like C). These realms of computation are so different, they are akin to mixing the complex numbers with the real. Yet hardly anyone points it out (I've concluded that hardly anyone has ever noticed -- the Church-Turing thesis has lulled the whole field into a shortcut in thinking which actually doesn't pan out in practice). > AFAIK there is no magic in computer science, although every sufficiently advanced ... Ha! That's very good. I'm glad you catch the spirit of my rant. "Any sufficiently advanced compiler can be substituted with magic to the neophyte without a change in output." A mini Liskov substitution. -- MarkJ Tacoma, Washington