guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] 17/17: Merge conversion of srfi-1.c to srfi-1.scm


From: Rob Browning
Subject: [Guile-commits] 17/17: Merge conversion of srfi-1.c to srfi-1.scm
Date: Tue, 30 Jul 2024 20:41:55 -0400 (EDT)

rlb pushed a commit to branch main
in repository guile.

commit bce91cebedda016b479972655c680acc6706e539
Merge: 6bd70136d 633845915
Author: Rob Browning <rlb@defaultvalue.org>
AuthorDate: Tue Jul 30 19:32:26 2024 -0500

    Merge conversion of srfi-1.c to srfi-1.scm
    
    Rewrite the srfi-1 C functions in Scheme and remove srfi-1.c as
    planned (see the comments at the top of srfi-1.c).
    
    The previous C code mutated intermediate results in some cases, even for
    non-! functions (e.g. set-cdr! to build the result without stack growth
    or a reverse!); some of the conversions preserve that approach for now.
    
    Simple testing via https://github.com/ecraven/r7rs-benchmarks/ didn't
    reveal any substantial performance regressions.
    
    Thanks to David Thompson for reviewing the changes and suggesting
    improvements.

 libguile/Makefile.am         |   4 -
 libguile/init.c              |   2 -
 libguile/srfi-1.c            | 885 -------------------------------------------
 libguile/srfi-1.h            |  47 ---
 module/srfi/srfi-1.scm       | 417 +++++++++++++++++++-
 test-suite/tests/srfi-1.test | 149 ++++----
 6 files changed, 476 insertions(+), 1028 deletions(-)



reply via email to

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