From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: 01/02: Re-implement (ice-9 streams) in terms of (srfi srfi-41) Date: Tue, 10 Mar 2015 22:58:00 -0400 Message-ID: <8761a81brb.fsf@netris.org> References: <20150309125201.7033.46022@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426042681 19947 80.91.229.3 (11 Mar 2015 02:58:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2015 02:58:01 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 11 03:57:57 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YVWqK-00083P-O0 for guile-devel@m.gmane.org; Wed, 11 Mar 2015 03:57:56 +0100 Original-Received: from localhost ([::1]:52413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVWqJ-0007G2-VU for guile-devel@m.gmane.org; Tue, 10 Mar 2015 22:57:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVWqD-0007Fs-K6 for guile-devel@gnu.org; Tue, 10 Mar 2015 22:57:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVWq9-0003YI-B6 for guile-devel@gnu.org; Tue, 10 Mar 2015 22:57:49 -0400 Original-Received: from world.peace.net ([50.252.239.5]:45827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVWq9-0003Y6-7M for guile-devel@gnu.org; Tue, 10 Mar 2015 22:57:45 -0400 Original-Received: from [10.1.10.78] (helo=jojen) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1YVWq0-0001Sa-K1; Tue, 10 Mar 2015 22:57:36 -0400 In-Reply-To: (Andy Wingo's message of "Mon, 09 Mar 2015 12:52:02 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 50.252.239.5 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17696 Archived-At: Andy Wingo writes: > wingo pushed a commit to branch master > in repository guile. > > commit aead655a45e689b332cfd148ecbb6d764e2c8eb8 > Author: Andy Wingo > Date: Thu Mar 5 09:44:53 2015 +0100 > > Re-implement (ice-9 streams) in terms of (srfi srfi-41) > > * module/ice-9/streams.scm: Re-implement in terms of SRFI-41. Passes > tests. I think we can't do this because (ice-9 streams) are based on native Guile promises which provide built-in thread synchronization, whereas SRFI-41 streams are based on SRFI-45 promises which do not include thread synchronization. I vaguely remember finding that SRFI-45 promises (written in pure Scheme) performed better than native Guile promises (written in C), presumably because of the lack of built-in thread synchronization. I don't remember what platform I did those comparisons on. Mark