From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Shinn Newsgroups: gmane.lisp.guile.devel Subject: Re: O(1) accessors for UTF-8 backed strings Date: Sun, 13 Mar 2011 13:42:34 +0900 Message-ID: References: <486722.32491.qm@web37905.mail.mud.yahoo.com> <87aah1qoc4.fsf@netris.org> <87zkp1p84m.fsf@netris.org> <87ei6csb85.fsf@gnu.org> <87tyf7oebc.fsf_-_@netris.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299991373 29468 80.91.229.12 (13 Mar 2011 04:42:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 04:42:53 +0000 (UTC) Cc: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Mar 13 05:42:43 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pyd8c-0000ae-KV for guile-devel@m.gmane.org; Sun, 13 Mar 2011 05:42:42 +0100 Original-Received: from localhost ([127.0.0.1]:50595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyd8c-00086Z-8s for guile-devel@m.gmane.org; Sat, 12 Mar 2011 23:42:42 -0500 Original-Received: from [140.186.70.92] (port=58028 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyd8Y-00082O-Ep for guile-devel@gnu.org; Sat, 12 Mar 2011 23:42:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pyd8W-0003p2-SF for guile-devel@gnu.org; Sat, 12 Mar 2011 23:42:38 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:64694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pyd8W-0003ot-Ii; Sat, 12 Mar 2011 23:42:36 -0500 Original-Received: by fxm18 with SMTP id 18so2381146fxm.0 for ; Sat, 12 Mar 2011 20:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=td7QNz3v1c3Yq4tCcuBvZdniEs9SR1gSIn6+j0wBUCg=; b=W17gLfFlGsYtM+vLaWW66hlXoFDdUdMJa4xhlRU7VtYEcvv+Ub5X4uRxzgj6aaePro dC/05JyzRmwHyQDi1wmn+BkKTyRbiXebabzwyWHbiSq8w0vdQYgW9dw93+smFR19Kk3I iZBbD5GXLHXISTZgwCw4cJSkbgP7r1jFb3PAQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ikwRODHib9ftp4TtRzfWU134HV+GcCrevssSqIUQG4CWlaswnsaU0dIQAWVXBjSxBR h0aU6g5G5WsCB8i0BHjTA8eyORJTrt4gieGHQAtV5OSl7Sa+T05GFPQIDvCTsRoNTdtF lrE8x3Ku2SPC0h4iNUIJV7v3YU2l2YxljLyBM= Original-Received: by 10.223.106.76 with SMTP id w12mr12994796fao.104.1299991354682; Sat, 12 Mar 2011 20:42:34 -0800 (PST) Original-Received: by 10.223.86.1 with HTTP; Sat, 12 Mar 2011 20:42:34 -0800 (PST) In-Reply-To: <87tyf7oebc.fsf_-_@netris.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11862 Archived-At: On Sun, Mar 13, 2011 at 1:05 PM, Mark H Weaver wrote: > ludo@gnu.org (Ludovic Court=E8s) writes: >> I also think strings should remain what they currently are, with O(1) >> random access. > > I just realized that it is possible to implement O(1) accessors for > UTF-8 backed strings. It's possible with several approaches, but not necessarily worth it: http://trac.sacrideo.us/wg/wiki/StringRepresentations --=20 Alex