Re: efficient implementation of string-replace-substring / string-replace-all

2014-03-23 Thread Mark H Weaver
Andy Wingo writes: > On Fri 13 Sep 2013 21:41, Mark H Weaver writes: > >> Here's an implementation that does this benchmark about 80 times faster >> on my machine: (20 milliseconds vs 1.69 seconds) >> >> (define* (string-replace-substring s substr replacement >>

Re: [PATCH] calculate usecs correctly in thread-sleep!

2014-03-23 Thread Andy Wingo
On Fri 20 Sep 2013 03:01, Nathaniel Alderson writes: > Attached is a patch for srfi-18 thread-sleep! to work for timeoutes less > than an second in the future. Applied, finally. Thanks! Next time mail bug-gu...@gnu.org so that it gets a ticket number and we'll be sure not to forget. Cheers,

Re: efficient implementation of string-replace-substring / string-replace-all

2014-03-23 Thread Andy Wingo
On Fri 13 Sep 2013 21:41, Mark H Weaver writes: > Here's an implementation that does this benchmark about 80 times faster > on my machine: (20 milliseconds vs 1.69 seconds) > > (define* (string-replace-substring s substr replacement >#:optional >

Re: discussion: serialize procedures and continuations

2014-03-23 Thread Andy Wingo
On Thu 15 Aug 2013 15:47, Chaos Eternal writes: > Hence, it is reasonable to expect a way to serialize the closures to > disks and/or remote machines over network. Agreed. Guile 2.2's compiler might be able to do this, with some modification -- take a closure and tree-shake out its dependencies

Re: [PATCH] Add ',run' and ',!'

2014-03-23 Thread Doug Evans
On Sun, Mar 23, 2014 at 12:38 PM, Andy Wingo wrote: > Hi, > > Following up after a lng time -- > > On Fri 12 Apr 2013 01:55, Daniel Hartwig writes: > >> On 11 April 2013 13:37, Ian Price wrote: >>> So, what do you think [about ,run and ,!]? >>> >>> This is the sort of thing that belongs

Re: SCM_SYSCALL

2014-03-23 Thread Andy Wingo
On Sun 23 Jun 2013 23:25, l...@gnu.org (Ludovic Courtès) writes: > We have this (since 2010): > > # define SCM_SYSCALL(line)\ > do\ > { \ > errno = 0;

Re: [PATCH] Add ',run' and ',!'

2014-03-23 Thread Andy Wingo
Hi, Following up after a lng time -- On Fri 12 Apr 2013 01:55, Daniel Hartwig writes: > On 11 April 2013 13:37, Ian Price wrote: >> >>> So, what do you think [about ,run and ,!]? >> >> This is the sort of thing that belongs in a .guile rather than in >> guile IMO. >> > > Right, and since y