Re: can't use variable in sxml-match?

2011-05-31 Thread nalaginrut
> Hello, > > Ian Price skribas: > > > Just a note to say that we found a solution to nalaginrut's problem on IRC. > > Great. What was the problem? > > Ludo'. > > well~let me repeat it in brief: ===Begin=== (lambda (my-pattern) (sxml-match cl [(my-pattern

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-05-31 Thread Neil Jerram
Neil Jerram writes: > The application developer would know if they were using GMP other than > via Guile, and in that case they'd choose to have GMP use GC > allocation. Alternatively they might know that their application's use > of GMP/Guile was not such as to generate lots of GMP garbage as t

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-05-31 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: > Hi! > > Mark H Weaver skribas: > >> The main reason I haven't already pushed this patch is that there is a >> slight complication: when you register custom allocation functions for >> use by GMP, they get used for _all_ allocation, not just for digits. In

Re: on the importance of names

2011-05-31 Thread Ludovic Courtès
Hi! Andy Wingo skribas: > On Thu 31 Mar 2011 11:32, l...@gnu.org (Ludovic Courtès) writes: > >> Andy Wingo writes: >> >>> It would be nice to add it in 2.0.x, as it's a compatible change. >> >> OK, sounds good! I guess you’ll have to add the explanation of why the >> name’s so great to the man

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-05-31 Thread Ludovic Courtès
Hi! Mark H Weaver skribas: > This patch changes the way that bignums are allocated, so that digits > are now allocated using the GC allocation functions instead of standard > malloc/realloc/free. > > Without this patch, computing (factorial 10), where factorial is > implemented using the str

Re: can't use variable in sxml-match?

2011-05-31 Thread Ludovic Courtès
Hello, Ian Price skribas: > Just a note to say that we found a solution to nalaginrut's problem on IRC. Great. What was the problem? Ludo'.

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-05-31 Thread Mark H Weaver
Here is a revised version of the patch, which fixes a typo in a comment and a poorly chosen "what" tag for allocation. Also, the definition of factorial in my email had a typo. It should be: (define (factorial n) (define (fac n acc) (if (<= n 1) acc (fac (1- n) (* n a

Re: on the importance of names

2011-05-31 Thread Andy Wingo
Hi! On Thu 31 Mar 2011 11:32, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo writes: > >> It would be nice to add it in 2.0.x, as it's a compatible change. > > OK, sounds good! I guess you’ll have to add the explanation of why the > name’s so great to the manual. :-) Done. Here's the in

[PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-05-31 Thread Mark H Weaver
Hello all, This patch changes the way that bignums are allocated, so that digits are now allocated using the GC allocation functions instead of standard malloc/realloc/free. Without this patch, computing (factorial 10), where factorial is implemented using the straightforward iterative approa

Re: When was scm_sizet deprecated?

2011-05-31 Thread Bruce Korb
On 05/31/11 11:42, Andy Wingo wrote: On Tue 31 May 2011 17:41, Bruce Korb writes: which version: 1.6? 1.7? 1.8? The NEWS seems to indicate 1.6. In general for deprecations, the NEWS is the best record, apart from git history. Thank you. It has always seemed somewhat difficult for me to

Re: When was scm_sizet deprecated?

2011-05-31 Thread Andy Wingo
On Tue 31 May 2011 17:41, Bruce Korb writes: > which version: 1.6? 1.7? 1.8? The NEWS seems to indicate 1.6. In general for deprecations, the NEWS is the best record, apart from git history. Cheers, Andy -- http://wingolog.org/

When was scm_sizet deprecated?

2011-05-31 Thread Bruce Korb
Hi, I need to know which version: 1.6? 1.7? 1.8? I don't have history, though I know the #define showed up in deprecated.h by 1.8.8. But I still have 1.6 clients, so I cannot just replace all scm_sizet's with size_t. I think I need to add another ag_scm_size_t thinegy that is sometimes #defined

Re: Cross-compiling Guile 2.0

2011-05-31 Thread Ludovic Courtès
Hi! Andy Wingo skribas: > On Sun 29 May 2011 20:10, Andy Wingo writes: > >> On Fri 27 May 2011 16:51, l...@gnu.org (Ludovic Courtès) writes: >> >>> Sounds good, but you’d need additional data that maps triplets (well, >>> $host_cpu) to low-level info such as endianness and word size, right? >>

Re: Cross-compiling Guile 2.0

2011-05-31 Thread Andy Wingo
On Sun 29 May 2011 20:10, Andy Wingo writes: > On Fri 27 May 2011 16:51, l...@gnu.org (Ludovic Courtès) writes: > >> Sounds good, but you’d need additional data that maps triplets (well, >> $host_cpu) to low-level info such as endianness and word size, right? > > Yes, which caused me a bit of ago