Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'wed,': 0.03; 'recursion': 0.09; 'url:%28': 0.09; 'url:%29': 0.09; 'am,': 0.14; 'wrote:': 0.14; '(lambda': 0.16; 'eg.': 0.16; 'recursive': 0.16; '\xa0do': 0.16; 'algorithm': 0.16; 'math': 0.16; 'cc:addr:python-list': 0.17; 'programming': 0.19; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'received:209.85.161.46': 0.23; 'received:mail- fx0-f46.google.com': 0.23; 'url:wiki': 0.23; 'function': 0.25; 'expect': 0.25; 'definition': 0.26; 'not.': 0.26; 'received:209.85.161': 0.26; '(in': 0.26; 'thanks.': 0.27; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'class': 0.29; 'cc:addr:python.org': 0.30; 'second': 0.30; 'differently': 0.30; 'throwing': 0.30; 'it.': 0.31; 'usage': 0.32; 'programming,': 0.32; "we're": 0.34; 'thus,': 0.35; 'using': 0.35; 'received:google.com': 0.37; 'useful': 0.37; 'received:209.85': 0.37; 'mathematical': 0.37; 'url:en': 0.37; 'url:org': 0.38; 'but': 0.38; 'implemented': 0.38; 'subject:: ': 0.38; '8bit%:6': 0.39; 'explain': 0.39; 'received:209': 0.39; 'more': 0.60; 'exact': 0.65; 'links,': 0.67; 'url:%1': 0.68; 'below:': 0.79; 'different.': 0.84; 'aka': 0.91; 'presumably': 0.91; 'subject:English': 0.91; 'technique': 0.93; 'roots': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=WDkzX62NAFzLb5X6emo0lX4soSW/oyhkkCJNBNlzt/E=; b=aFFwajSvvwIxkz4/F7EWUJGXvf1GrLKQW21uX3pqSNlVInk7rVFBpqLAfWZ/Umn3ah lHUku9010GrrvxcjZ0tEgVfcIjEPWL08EGnE88kU/dIMnzSAd4Qmzbcpth38Id8TfSPN JZImyuj7kerTw6X6Udv46YqxrS/hIJNRXUmC8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=w6I/srjclW8L9rh3rsrWxn8Hv/w8Z8vs2Z8895UwOeZrGteYJ2wMtQYRDt6e4UUzSz oH6RBC2s7amTJDFCBXkwklVxGFbLLmODJOuivQsi/fTUmue5ZGIM/10ZKBSH+6P9H+uY 7nM0VWAtEHwDS9sfC//v9r8Cnq7I3GQX2t3mA= MIME-Version: 1.0 In-Reply-To: <436ff55b-f61d-46a8-b5ea-f29d73190aba@s41g2000prb.googlegroups.com> References: <2acf55f1-0415-4a13-8e16-aa3418d149c2@r35g2000prj.googlegroups.com> <436ff55b-f61d-46a8-b5ea-f29d73190aba@s41g2000prb.googlegroups.com> From: Ian Kelly Date: Wed, 18 May 2011 08:32:29 -0600 Subject: Re: English Idiom in Unix: Directory Recursively To: rusi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 41 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305729181 news.xs4all.nl 49174 [::ffff:82.94.164.166]:34205 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5700 On Wed, May 18, 2011 at 1:10 AM, rusi wrote: >> Um, it is. =A0Consider the simple function (lambda x, y: x + y). >> Mathematically, this function is recursive. =A0Algorithmically, it is >> not. =A0Do you disagree? > > See the definition of primitive recursion eg. > > http://en.wikipedia.org/wiki/Primitive_recursive_function#Definition > > (2 of the second set of "more complex" definitions) from where the > name 'primitive recursion' is presumably derived) > > And for the more general (wider) class of 'recursive' functions (in > the math sense aka computable functions) see a little below: > > http://en.wikipedia.org/wiki/Primitive_recursive_function#Relationship_to= _recursive_functions I know what primitive recursive and computable functions are, thanks. What you're failing to explain is why you would consider that function to be recursive from a programming standpoint. In programming, when we say a function is recursive, we mean that it is implemented using the technique of recursion, not that it is computable. Since we're throwing around Wikipedia links, see the definition in the first sentence at: http://en.wikipedia.org/wiki/Recursion_%28computer_science%29 In fact, the mathematical definition would not be useful for programming since to us a function is an implementation of an algorithm (I expect Lispers may quibble over this, but it is true even there). Thus, in programming, all functions are computable. > Of course I grant that the adjective 'recursive' is used differently > in computability and in programming but the roots are not all that > different. Not just the adjective 'recursive', but also the noun 'function'. I'm not sure of the exact etymology of 'recursive', although I would bet that the mathematical usage came first and the programming usage is a derivative of it.