Re: [PATCH] Add string-replace-substring to (ice-9 string-fun)

2020-01-05 Thread David Pirotte
Hi, > > On 5 Jan 2020, at 13:12, Jan Nieuwenhuizen wrote: > > > > Andy Wingo writes: > > > >> On Fri 20 Dec 2019 18:32, lloda writes: > >> > >>> This patch adds string-replace-substring that wingo posted to the > >>> mailing list to (ice-9 strings). This is a commonly used function > >>>

Re: GNU Guile 2.9.5 Released [beta]

2020-01-05 Thread Andy Wingo
On Sun 01 Dec 2019 21:41, Chris Vine writes: > Is this rewrite, and the new with-exception-handler procedure, an > opportunity to think about standardization of guile's implementation of > the R6RS/R7RS 'guard' form, or at least think about what is wanted for > 'guard'? > > The formal semantics

Re: [PATCH] Add string-replace-substring to (ice-9 string-fun)

2020-01-05 Thread Arne Babenhauserheide
Christopher Lam writes: > This function has an interesting history. > > Someone or something in #guile had clued me there was a magic > string-replace-substring somewhere in guile-user archives. With some luck I > found it, and had bookmarked it, and kept it at the back of my mind for a > good

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-05 Thread Göran Weinholt
Arne Babenhauserheide writes: > Göran Weinholt writes: >> I've pushed a Guile-specific version of (hashing fixnums) that inlines >> the generic arithmetic procedures. This and some other small changes >> improved the runtime: >> >>clock utime stime cutime cstime gctime >> before:

Re: [PATCH] Add string-replace-substring to (ice-9 string-fun)

2020-01-05 Thread lloda
> On 5 Jan 2020, at 13:12, Jan Nieuwenhuizen wrote: > > Andy Wingo writes: > >> On Fri 20 Dec 2019 18:32, lloda writes: >> >>> This patch adds string-replace-substring that wingo posted to the >>> mailing list to (ice-9 strings). This is a commonly used function and a >>> good

Re: [PATCH] Add string-replace-substring to (ice-9 string-fun)

2020-01-05 Thread Christopher Lam
This function has an interesting history. Someone or something in #guile had clued me there was a magic string-replace-substring somewhere in guile-user archives. With some luck I found it, and had bookmarked it, and kept it at the back of my mind for a good number of months. Meanwhile I was

Re: [PATCH] Add srfi-171 to guile

2020-01-05 Thread Linus Björnstam
Thanks for taking time to review it! I will make a new patch with all your proposed changes. Don't mind the correctness comments, btw. They are a rest from the first successful implementation when I had a less clear mental model of how transducers worked. I know how to verify and test that

Re: [PATCH] Add string-replace-substring to (ice-9 string-fun)

2020-01-05 Thread Jan Nieuwenhuizen
Andy Wingo writes: > On Fri 20 Dec 2019 18:32, lloda writes: > >> This patch adds string-replace-substring that wingo posted to the >> mailing list to (ice-9 strings). This is a commonly used function and a >> good implementation isn't trivial, so I think it deserves inclusion. > > I didn't know

Re: [PATCH] Add string-replace-substring to (ice-9 string-fun)

2020-01-05 Thread Andy Wingo
On Fri 20 Dec 2019 18:32, lloda writes: > This patch adds string-replace-substring that wingo posted to the > mailing list to (ice-9 strings). This is a commonly used function and a > good implementation isn't trivial, so I think it deserves inclusion. I didn't know that this module existed :)

Re: [PATCH] Add srfi-171 to guile

2020-01-05 Thread Andy Wingo
Hi :) Since this is a final SRFI I think there's no problem getting it in. Some formatting notes follow; since it's your first Guile patch I'm a bit verbose :) Probably this will miss 3.0.0 but make 3.0.1, FWIW. On Sun 22 Dec 2019 15:55, Linus Björnstam writes: > From

Re: GNU Guile 2.9.8 Released [beta]

2020-01-05 Thread Andy Wingo
On Fri 03 Jan 2020 06:34, Nala Ginrut writes: > When I was trying to compile Artanis, the configure threw an error: > > checking for Guile version >= 3.0... configure: error: Guile 3.0 required, > but 2.9.8 found > > > Here's what I put

Re: Re-exporting a replaced binding

2020-01-05 Thread Andy Wingo
On Fri 03 Jan 2020 19:30, Ludovic Courtès writes: > I’m not sure if this is an intended consequence of > cf08dbdc189f0005cab6f2ec7b23ed9d150ec43d, so I thought I’d share this > example of a practical effect: > > ludo@ribbon /tmp [env]$ cat x.scm > (define-module (x) > #:use-module (srfi

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-05 Thread Andy Wingo
On Sat 04 Jan 2020 01:40, Ludovic Courtès writes: > Ludovic Courtès skribis: > >> ludo@ribbon ~/src/guix$ ./pre-inst-env guix environment --pure --ad-hoc >> guile-next guile3.0-hashing -- guile ~/tmp/sha256.scm >> >> ;;; (hash "b33576331465a60b003573541bf3b1c205936a16c407bc69f8419a527bf5c988")