From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Re: Sting abstraction 2 Date: Wed, 20 May 2009 20:33:25 -0700 Message-ID: <1242876805.32575.8005.camel@localhost.localdomain> References: <1242833049.32575.7271.camel@localhost.localdomain> <878wkreayf.fsf@gnu.org> <112865.34993.qm@web37907.mail.mud.yahoo.com> <87hbzfmjtv.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1242876818 1738 80.91.229.12 (21 May 2009 03:33:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2009 03:33:38 +0000 (UTC) Cc: guile-devel@gnu.org To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu May 21 05:33:31 2009 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 1M6z28-0006Nl-KX for guile-devel@m.gmane.org; Thu, 21 May 2009 05:33:28 +0200 Original-Received: from localhost ([127.0.0.1]:60909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6z27-0000qX-O6 for guile-devel@m.gmane.org; Wed, 20 May 2009 23:33:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6z24-0000q6-5b for guile-devel@gnu.org; Wed, 20 May 2009 23:33:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6z23-0000pp-P8 for guile-devel@gnu.org; Wed, 20 May 2009 23:33:23 -0400 Original-Received: from [199.232.76.173] (port=45747 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6z23-0000pj-Ha for guile-devel@gnu.org; Wed, 20 May 2009 23:33:23 -0400 Original-Received: from smtp108.prem.mail.sp1.yahoo.com ([98.136.44.63]:32369) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1M6z23-0002xS-1d for guile-devel@gnu.org; Wed, 20 May 2009 23:33:23 -0400 Original-Received: (qmail 28057 invoked from network); 21 May 2009 03:33:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=RrBCongyjtbXJBZeJKMWhEoXEVBgSkp+I7+PPegqSMHSuCwmXVcwsLAvmnSCiYfSz8iu5cV1zxcoKQYCZSPmIychSGHQsFlxpREXRpqgrgoAeffpmhHF9lsnGsrUvp4OQkIVudWahit9XMzgMWiQXIewwTFvZ3DkasFCuto4rV0= ; Original-Received: from ppp-71-140-200-82.dsl.irvnca.pacbell.net (spk121@71.140.200.82 with plain) by smtp108.prem.mail.sp1.yahoo.com with SMTP; 20 May 2009 20:33:21 -0700 PDT X-Yahoo-SMTP: FzNaA9iswBDuBl1BmgaIRDaP9Q-- X-YMail-OSG: kRxhhgIVM1myz_H1Z.ARo6irDztSsONJb22BSHfS3bQqSXak36G.TSIAOXuoge16.KGN_kDXQHL6cyAc5yf8cK.q0zi_vBXF00pxGbbsadgajGsNFeuubhQWcIWcYszJRr5dCTrG2OSfwsAjjQ2Kvz8RSjJ.4pn6Bwjz9eFs1cHd2_WmZ4cVHbOgzUaSnh1X03gxIkieJMEb_zP.VtyVNhtYzXigekfunbXupLRNrhILeRCGsz2BRA9UsNcluQNqxtePWv.h6ZZgSUGgWwJoFNf4w1Wwnk6W4ep7snvGHTiXVkr662s0AKB33ackw9YotG5YhM7Is9CFhwpHhOCvcj4TzNB1bG71twr.M2HkgZoGbkuy9lHELjuaihtsdgBfTwE5DTKCkhYlTQ0sb3e0wegF X-Yahoo-Newman-Property: ymail-3 In-Reply-To: <87hbzfmjtv.fsf@gnu.org> X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (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:8500 Archived-At: On Thu, 2009-05-21 at 01:32 +0200, Ludovic Courtès wrote: > > (Did I ever mention this backtrace tree > > pic? http://www.lonelycactus.com/uploaded_images/test[1]-765536.PNG > > It shows that for all the scripts the test suite, all of the calls to > > low-level read and write pass through those two functions.) > > Nice. I suppose you had breakpoints in GDB, captured the output of > "bt", frobbed it and fed it to `dot'? > Pretty much. > > I have changed my opinion on one issue. I don't believe that Guile > > ports should have a specific encoding: they should just use the > > locale. This is just pragmatism. Guile ports and the default reader > > are annoying things to hack. I am loathe to touch them more than is > > necessary. > > > > The R6RS ports have the nice transcoder idea. It might be more fun to > > push port-specific encodings to that library. > > Are you saying that we'd have an implementation of the R6 port API that > DTRT, whereas Guile's current API would remain encoding-oblivious? > I am thinking that the setlocale character encoding becomes the encoding for all legacy Guile port IO, and if you want to operate on a port that has a different locale than your setlocale character encoding, you need to do that through an R6RS port. > Thanks! > > Ludo'. -Mike