Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(at': 0.04; 'languages,': 0.04; 'guido': 0.05; 'expressions': 0.07; 'strings.': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'language.': 0.14; '("an': 0.16; 'alphabet': 0.16; 'finite': 0.16; 'finite,': 0.16; 'infinite;': 0.16; 'janssen': 0.16; 'language)': 0.16; 'other,': 0.16; 'symbols': 0.16; 'so.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; "python's": 0.19; 'written': 0.21; 'programming': 0.22; 'saying': 0.22; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'either.': 0.24; 'simpler': 0.24; 'cc:2**0': 0.24; 'equivalent': 0.26; 'least': 0.26; 'world,': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'generally': 0.29; 'related': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; 'know.': 0.32; "we're": 0.32; '(e.g.': 0.33; '(i.e.': 0.33; 'entirely': 0.33; 'implemented': 0.33; '"the': 0.34; "can't": 0.35; 'agree': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'two': 0.37; 'sometimes': 0.38; 'ends': 0.38; 'pm,': 0.38; 'anything': 0.39; 'functional': 0.39; 'called': 0.40; 'ian': 0.60; 'most': 0.60; 'hope': 0.61; 'term': 0.63; 'real': 0.63; 'such': 0.63; 'skip:n 10': 0.64; 'to:addr:gmail.com': 0.65; 'design.': 0.68; 'paper': 0.75; 'items,': 0.91; 'washington': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=nk9R4M0Y3gHluEgkwny+lSt+n5EYhA10DZc2IFk4KbM=; b=b3kZOn+K4XtK65pEumiWm/N528y4g/zOr6cY+Cb2Km4Q7yT2ycA+T6c7jxalzPZri3 yt7o6tPIJfzYwny53fL/t0UYpeiSFEX2B5ckoFOE8gDindYxQGuXJlKHv5MwgNI2CPfR 2S6Rv3rqtv/MlGyRpEIst2C48UgP5GpbVWg1MscQoBS/jynbzfi+z9ATM7E1evAMknuL GB+UTZD0KawNVbvTGAds2I7cMuSJWp/l0qdnvh3IHV1QmWETMUKwQV6AE2Caf1/yLB+0 ImpjUb9G9rw786BBKN03JbE5iyweFK6obzs9OnCp5+yE93RksSN3QRyM1pJzVBuO4LpP IPlw== MIME-Version: 1.0 X-Received: by 10.194.119.33 with SMTP id kr1mr14887199wjb.36.1366247050293; Wed, 17 Apr 2013 18:04:10 -0700 (PDT) In-Reply-To: References: <66e78281-542b-41b3-a56d-04bf736d1e0a@googlegroups.com> <14a9ca59-218d-4dec-9e03-b7ac6b92d378@af5g2000pbd.googlegroups.com> Date: Wed, 17 Apr 2013 18:04:10 -0700 Subject: Re: Atoms, Identifiers, and Primaries From: Mark Janssen To: Ian Kelly Content-Type: text/plain; charset=ISO-8859-1 Cc: Python 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: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366247057 news.xs4all.nl 2195 [2001:888:2000:d::a6]:43676 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43792 On Wed, Apr 17, 2013 at 5:33 PM, Ian Kelly wrote: > On Wed, Apr 17, 2013 at 5:40 PM, Mark Janssen wrote: >> Rercursion the "bedrock" of language-design. I don't think so. From >> what I know, a well-defined language ends at its symbols. It makes no >> use of "infinities". > > From what I know, you can't have a Turing-complete language without > some form of recursion. So yeah, it's pretty damn important in > language design. A Turing-complete language generally has items that are defined in terms of other, simpler items, but this is not called recursion in any C.S. paper I know. In C.S. of my world, recursion is a specific term that is related to functional calculii. This type of recursion is sometimes often found in imperative/iterative languages, but is rooted in the fomer. >> Conflating a programming >> language ("an infinite object such as python language") with a program >> written in that language ("there are an infinite number of python >> programs"). These two are entirely separate (at least anything >> implemented on a real computer). > > Mathematically, a language (e.g. a programming language) is a set of > well-formed strings (i.e. programs) constructed from the symbols of an > alphabet (i.e. tokens). Mathematically, perhaps, but from C.S. theory, a language is a fully-specified set of expressions and tokens which are considered valid -- it's grammar. > For most languages, this set is infinite; This set is always finite, as you can see on the specification for Python's language. > saying "the Python language is infinite" is equivalent to saying > "there are an infinite number of Python programs". I don't think Guido would agree that "the Python language is infinite", but then perhaps he doesn't care either. > A finite, non-recursive grammar can only hope to accept a finite > number of strings. Is the language we're speaking in now one with a finite, non-recursive grammar? -- MarkJ Tacoma, Washington