Path: csiph.com!usenet.pasdenom.info!news.albasani.net!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'source,': 0.04; 'smallest': 0.07; 'suppose': 0.07; 'subject:string': 0.09; 'language,': 0.12; 'emit': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'increment': 0.16; 'outputs': 0.16; 'perl.': 0.16; 'roy': 0.16; 'specific,': 0.16; 'winner.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'written': 0.21; 'command': 0.22; '>>>': 0.22; 'programming': 0.22; 'entries': 0.24; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'program,': 0.31; 'url:wiki': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'another': 0.32; 'says': 0.33; 'received:209.85': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'too': 0.37; 'received:209': 0.37; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'competition': 0.65; 'smith': 0.68; 'fact,': 0.69; 'bare': 0.84; 'beer,': 0.84; 'song': 0.84; '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:content-type; bh=5I+j+zuLEGEJReVjqyTY++rtWcJAjxWox0ZhavGlgcw=; b=X1mdsuULYYFmW/0Qc5YePfa9tlBI0iNs8zYhqIK23ILf+g22dZVXpmwZvqNMfJ76k8 Z9isywmDMfZjGjYdNTRSrLib1E9+wDo+rPP2iPnnNwG+UdoeQ4nPZPXmmePFUzGg8Ztz ttqafMQWsneV9ddX3m5PLZFW6c2vBJWmEi7LREYC1b1RTw9WhvePKrvyoJSEnUZCg1Ng GVTsgKT/6WjglsW8OU6+RaX73ss7zsETEuja5r6AjiLoAFyxrngAWig5g0oqkuCoUODQ 2xxL5WfWLQU+oMyQo84vNYqWtl+YjQkTmcKiHqDtPFHizYjKYNLthn5N37a7jP5JSdCd C6iw== MIME-Version: 1.0 X-Received: by 10.52.97.8 with SMTP id dw8mr12571449vdb.91.1365481355491; Mon, 08 Apr 2013 21:22:35 -0700 (PDT) In-Reply-To: <51637f11$0$30003$c3e8da3$5496439d@news.astraweb.com> References: <5161e996$0$29995$c3e8da3$5496439d@news.astraweb.com> <51637f11$0$30003$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 9 Apr 2013 14:22:35 +1000 Subject: Re: Splitting of string at an interval From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365481357 news.xs4all.nl 6845 [2001:888:2000:d::a6]:51733 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43112 On Tue, Apr 9, 2013 at 12:38 PM, Steven D'Aprano wrote: > On Mon, 08 Apr 2013 21:09:08 -0400, Roy Smith wrote: > >>> There's a whole competition about writing the smallest program which >>> outputs the song "99 bottles of beer": >>> >>> http://codegolf.com/99-bottles-of-beer >> >> I see the top 10 entries are all written in Perl. I suppose this says >> something. > > > When I write my own programming language, it will include a one-character > built-in command to perform 99 bottles of beer, just so my language will > always be the winner. > > In fact, I may make it a bare . so that not only will it be the shortest > program, but also the smallest program in terms of number of non-white > pixels. Don't be too specific, Steven. Also include a one-character built-in to emit the program's own source, and another to echo "hello, world" to standard output. And one to increment the accumulator, just for completeness. Who knows, it might already exist! http://esolangs.org/wiki/Cliff_L._Biffle ChrisA