Re: add-relative-load-path ? - scm_add_load_path too?

2012-01-31 Thread Mark H Weaver
Hi Ian, Ian Hulin writes: > I've just seen the add-load-path scheme function in the new git > documentation. > > Please, please, pretty please can we have a scm_add_load_path API > equivalent callable from C/C++? The LilyPond initialization code > currently does disgusting things like faking > (e

Re: GNU Guile 2.0.5 released

2012-01-31 Thread Ian Price
l...@gnu.org (Ludovic Courtès) writes: > We are pleased to announce GNU Guile release 2.0.5. This release fixes > the binary interface information (SONAME) of libguile, which was > incorrect in 2.0.4. It does not contain other changes. > > Please be sure to upgrade to 2.0.5 if you already instal

Re: GNU Guile 2.0.4 released

2012-01-31 Thread Andy Wingo
On Mon 30 Jan 2012 23:15, l...@gnu.org (Ludovic Courtès) writes: > All apologies. This should be fixed now with 2.0.5. Thanks for handling the release, Ludo. What a crazy process, this time. Do you have any thoughts about how it might be made smoother in the future? > And note that this sign

Re: [PATCH] Doc: protecting procedure->pointer pointers from GC

2012-01-31 Thread Andy Wingo
On Mon 30 Jan 2012 22:32, Neil Jerram writes: > Following debugging of a strange issue where oFono appeared to be > sending a D-Bus signal from the wrong object, but I eventually realised > that the problem was in my own code... The docs are good, but the example is irritating ;) Is there a rea

Re: GNU Guile 2.0.4 released

2012-01-31 Thread Ludovic Courtès
Hi, Andy Wingo skribis: > On Mon 30 Jan 2012 23:15, l...@gnu.org (Ludovic Courtès) writes: > >> All apologies. This should be fixed now with 2.0.5. > > Thanks for handling the release, Ludo. What a crazy process, this > time. Indeed. > Do you have any thoughts about how it might be made smo

Re: GNU Guile 2.0.5 released

2012-01-31 Thread Ludovic Courtès
Ian Price skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> We are pleased to announce GNU Guile release 2.0.5. This release fixes >> the binary interface information (SONAME) of libguile, which was >> incorrect in 2.0.4. It does not contain other changes. >> >> Please be sure to upgrade t

Re: GNU Guile 2.0.4 released

2012-01-31 Thread Andy Wingo
On Tue 31 Jan 2012 14:20, l...@gnu.org (Ludovic Courtès) writes: > Regarding bug fixing, there’s probably room for improvement. For > instance, when a bug is filed, we could assign a target release for the > fix, and stick to it. Perhaps we could have a more formal freeze window > also, during w

Re: add-relative-load-path ? - scm_add_load_path too?

2012-01-31 Thread Mark H Weaver
Replying to myself... > Probably the easiest option here is to simply prepend the desired > directories onto the GUILE_LOAD_PATH environment variable before calling > scm_boot_guile. On second thought, this is probably not a good idea, because you don't want this setting to propagate to other sub

Clearing stale references from the stack

2012-01-31 Thread Ludovic Courtès
Hi! "Andy Wingo" skribis: > +;; Recurse through a C function that should clear any values that might > +;; have spilled on the stack temporarily. (The salient feature of > +;; with-continuation-barrier is that currently it is implemented as a C > +;; function that recursively calls the VM.) > +

Re: Clearing stale references from the stack

2012-01-31 Thread Andy Wingo
Hello :-) On Tue 31 Jan 2012 19:02, l...@gnu.org (Ludovic Courtès) writes: > "Andy Wingo" skribis: > >> +;; Recurse through a C function that should clear any values that might >> +;; have spilled on the stack temporarily. (The salient feature of >> +;; with-continuation-barrier is that current

Re: [PATCH] Doc: protecting procedure->pointer pointers from GC

2012-01-31 Thread Neil Jerram
Andy Wingo writes: > On Mon 30 Jan 2012 22:32, Neil Jerram writes: > >> Following debugging of a strange issue where oFono appeared to be >> sending a D-Bus signal from the wrong object, but I eventually realised >> that the problem was in my own code... > > The docs are good, but the example is

Re: Build Error in master

2012-01-31 Thread Noah Lavine
I've done some debugging. Here is what I know so far: The error happens in scm_bootstrap_vm, which is called before we enter Scheme, so the error is only in the C code. It happens in scm_i_str2symbol, when scm_bootstrap_vm wants to make some symbol. Here's how symbols work: there is a variable ca

Should we add scm_to_pointer, or just use SCM_POINTER_VALUE?

2012-01-31 Thread Mark H Weaver
I was chatting with rcfox on #guile, who needed to extract the C pointer from a SCM pointer object, from C code. In this case, it was a C callback created using 'procedure->pointer'. I tried to discourage him from using SCM_POINTER_VALUE, because it's undocumented and will embed internal details