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

2020-01-06 Thread Linus Björnstam
Did you try it with a "better" string-contains? IIRC the guile one is a naive string search (but in C) which could maybe be better if it was implemented as, say, a KMP search. The reference srfi-13 has one you could try. That could be faster for longer strings and longer patterns. If that is f

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-06 Thread Ludovic Courtès
Hi Göran, Göran Weinholt skribis: > 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: > 2.2.6 31.06 32.61 0.0

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-06 Thread Ludovic Courtès
Hello, Andy Wingo skribis: > 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 >>> "b33576331465a60b0035735

Re: Re-exporting a replaced binding

2020-01-06 Thread Ludovic Courtès
Hi! Andy Wingo skribis: > On Fri 03 Jan 2020 19:30, Ludovic Courtès writes: [...] >> Should the #:re-export clause propagate the replace bit, or should >> it not? :-) > > It is a good question :) Before, if you re-exported a #:replace > binding, it wasn't possible to have it be exported wit

Re: SHA256 performance with Guile 2.2 vs. Guile 3.0

2020-01-06 Thread Andy Wingo
On Mon 06 Jan 2020 10:47, Ludovic Courtès writes: > Andy Wingo skribis: > >> With cross-module inlining of "small" definitions, I think we would >> solve a lot of this kind of problem. I think we could add this during >> 3.0 and for this reason I would hesitate to apply this patch for 3.0 >> be

Re: GNU Guile 2.9.5 Released [beta]

2020-01-06 Thread Andy Wingo
On Mon 06 Jan 2020 00:26, Chris Vine writes: > I have a 'try' macro which adopts the approach that if an exception > arises, the macro unwinds from the dynamic environment of the code > where the exception arose to the dynamic environment of the call to > 'try', evaluates the cond clauses in that

Re: landed r7rs support

2020-01-06 Thread Andy Wingo
On Fri 22 Nov 2019 17:00, Nala Ginrut writes: > On Tue, Nov 19, 2019, 03:34 Amirouche Boubekki > wrote; > > link: > https://www.gnu.org/software/guile/manual/guile.html#Extending-the-Compiler > > In that section, maybe add a note about a web assembly backend? > > +1 > In the past decade, we'

Re: support for mips32r6

2020-01-06 Thread Andy Wingo
On Fri 30 Aug 2019 10:09, Bruno Haible writes: > A libffcall bug report [1] made me aware of an incompatible change in > the MIPS ISAs. Namely, for jumping to an address given in a register, > starting with mips32r6, the existing 'jr' instruction does not work > any more: it produces an 'illegal

Re: GNU Guile 2.9.5 Released [beta]

2020-01-06 Thread Chris Vine
On Mon, 06 Jan 2020 21:34:59 +0100 Andy Wingo wrote: > On Mon 06 Jan 2020 00:26, Chris Vine writes: > > I have a 'try' macro which adopts the approach that if an exception > > arises, the macro unwinds from the dynamic environment of the code > > where the exception arose to the dynamic environme