Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!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.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'indexing': 0.07; 'string': 0.09; 'subject:language': 0.09; 'python': 0.11; '1:13': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'semantics': 0.16; 'wrote:': 0.18; 'memory': 0.22; 'string,': 0.24; 'unicode': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'up.': 0.33; 'subject: (': 0.35; 'operations': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'nov': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'space': 0.40; 'major': 0.40; 'how': 0.40; 'easy': 0.60; 'length': 0.61; 'here': 0.66; 'bmp,': 0.84; 'pike': 0.84; '2013': 0.98 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 :content-type; bh=8W/Z5Fme7crdaMN6FJOObKdqOsjN/6BPdIPNM+cR4EA=; b=OTy9r1ANSFXMVbvTnQyL3SCFHs1H+sfAFbNXcLEVePB4LzVDs/TPCCspfqBSbHtDrN OinNm1D30DtKuuPp+RrLTujk0uQwT5h9/OMk/RNQwLp+DBFX2BYDELeeCGbxJ5kxeYyB M+HCyzzJyBFVMwOSHoUwR42K0LSJ3/Yw5m4Gj7wGRnLZhgGBxIpiC94Duqt6GawMHp2u Zsf7fhbWadHvDY2zWlyhAs7eWrpF7rrHA35RUOLiY0LxnLV6VoV5ELtWaJ/YuXgr6vh3 dBILjg8zM63zQt7BVFLTW6so5wEPDP+LmXNIpZbDnfdalu2BiQEQX2j++VB+A3EhHqkf m7Ag== MIME-Version: 1.0 X-Received: by 10.68.32.231 with SMTP id m7mr5474104pbi.22.1384829804846; Mon, 18 Nov 2013 18:56:44 -0800 (PST) In-Reply-To: <528ac93d$0$11089$c3e8da3@news.astraweb.com> References: <1f0ffad0-f9b1-4154-b048-510d8e38846e@googlegroups.com> <41f332dd-1c31-4699-9176-7e8589f9c8ae@googlegroups.com> <528a16b5$0$29992$c3e8da3$5496439d@news.astraweb.com> <528a249e$0$29992$c3e8da3$5496439d@news.astraweb.com> <528ac93d$0$11089$c3e8da3@news.astraweb.com> Date: Tue, 19 Nov 2013 13:56:44 +1100 Subject: Re: Oh look, another language (ceylon) 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384829815 news.xs4all.nl 15877 [2001:888:2000:d::a6]:35111 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59935 On Tue, Nov 19, 2013 at 1:13 PM, Steven D'Aprano wrote: > Still, given that Pike and Python have already solved this problem, and > have O(1) string indexing operations and length for any Unicode string, > SMP and BMP, it is a major disappointment that Ceylon doesn't. And of course, the part that's "solved" here is not the O(1) string indexing, but the fact that UTF-32 semantics with less memory usage than UTF-16. It's easy to get perfect indexing semantics if you don't mind how much space your strings take up. ChrisA