From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Neil Jerram" Newsgroups: gmane.lisp.guile.devel Subject: Re: Internal visibility Date: Wed, 11 Jun 2008 08:37:56 +0100 Message-ID: <49dd78620806110037g4fd9039eg8b628ca51113ec89@mail.gmail.com> References: <87k5i5d6ei.fsf@ossau.uklinux.net> <87lk2futg0.fsf@ossau.uklinux.net> <87fxslr1jr.fsf_-_@gnu.org> <878wxv5t7q.fsf@gnu.org> <87mym6dv6t.fsf@gnu.org> <49dd78620806091110v7a667787mef392fbf4446139d@mail.gmail.com> <87iqwhn3jw.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213170001 26993 80.91.229.12 (11 Jun 2008 07:40:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2008 07:40:01 +0000 (UTC) Cc: guile-devel@gnu.org To: hanwen@xs4all.nl Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 11 09:40:44 2008 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.50) id 1K6Kwm-0005rG-4P for guile-devel@m.gmane.org; Wed, 11 Jun 2008 09:40:44 +0200 Original-Received: from localhost ([127.0.0.1]:49043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6Kvy-0002A7-8R for guile-devel@m.gmane.org; Wed, 11 Jun 2008 03:39:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6KuA-0000qo-HG for guile-devel@gnu.org; Wed, 11 Jun 2008 03:38:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6Ku6-0000mb-W3 for guile-devel@gnu.org; Wed, 11 Jun 2008 03:38:02 -0400 Original-Received: from [199.232.76.173] (port=34213 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6Ku6-0000mN-Io for guile-devel@gnu.org; Wed, 11 Jun 2008 03:37:58 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.251]:47268) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6Ku6-0008RO-7X for guile-devel@gnu.org; Wed, 11 Jun 2008 03:37:58 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so3609360rvb.6 for ; Wed, 11 Jun 2008 00:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=0xDKAs9oR0KiT3OgCSCX+mXukPbYVgvUcxYwWW8qbqw=; b=m0Yvci2CRX/31sr5NXPyRIqcD6unplw9/UmlPn96OhuhYuS+j3JgrBrmoJXsC/HXCu Enc+GNukcuP0mrxx93cSkCcLU+ZVdQ1dUEKqkPKP2OOzTfE7S526AVOF1eBwcD6fkzhi TuW8DB4hqqLjLhoWtj6EDoZsm8PeF+e9Jecd8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pRpMVfMQJ/8My4aWS7zdI8DqB0Z6J/YKcAWi6vWYCTsAEk2zUBIySgDoxv/oEIbm1W 3K5UaX+KPtokhiDONEvK+wb+cuTEUqVp+pge5eC6htmjQWhnDMBzLl7yS7z6AtfDTElA Pm3Q0WdBudbk4i81wHX1Im1bgGlBJROio1pN8= Original-Received: by 10.115.16.1 with SMTP id t1mr6100609wai.19.1213169876612; Wed, 11 Jun 2008 00:37:56 -0700 (PDT) Original-Received: by 10.114.197.8 with HTTP; Wed, 11 Jun 2008 00:37:56 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:7319 Archived-At: 2008/6/11 Han-Wen Nienhuys : > > I think that a sequence of Unicode code points this is a somewhat > limited view of how strings should be used. Among others, the > implication is that programs cannot rely on being able to index a > string in O(1) time (since the string might be UTF-x encoded). > > What do I use if I want to have guaranteed O(1) indexing -that is- if > I want to manipulate strings of bytes? > > How would I read the contents of a binary file without jumping through > encoding hoops? A uniform byte array? Neil