[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 01/02: Re-implement (ice-9 streams) in terms of (srfi srfi-41)

From: Mark H Weaver
Subject: Re: 01/02: Re-implement (ice-9 streams) in terms of (srfi srfi-41)
Date: Tue, 10 Mar 2015 22:58:00 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Andy Wingo <address@hidden> writes:

> wingo pushed a commit to branch master
> in repository guile.
> commit aead655a45e689b332cfd148ecbb6d764e2c8eb8
> Author: Andy Wingo <address@hidden>
> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]