Re: [PATCH 1/2] check for GC_allow_register_threads

2011-03-30 Thread Andy Wingo
On Wed 30 Mar 2011 06:50, Mike Gran spk...@yahoo.com writes: GC_allow_register_threads is not present in earlier versions of BDW-GC * configure.ac: check for GC_allow_register_threads * libguile/gen-scmconfig.c (SCM_HAVE_GC_ALLOW_REGISTER_THREADS): new define * libguile/threads.c

Re: Compilation error with stable-2.0 branch

2011-03-30 Thread Detlev Zundel
Hi Andy, Fixed, I believe. Please let me know if you can still reproduce the problem. My build is successful now, thanks for the prompt action! After the mail from nalaginrut I tried switching to bdwgc-7_2alpha5-20110107 but as expected this did not help with the last error. To keep my

Re: Take some lowhanging fruit to speed up R6RS fixnum operations

2011-03-30 Thread Andreas Rottmann
Andy Wingo wi...@pobox.com writes: On Wed 23 Mar 2011 00:20, Andreas Rottmann a.rottm...@gmx.at writes: In porting dorodango[0], I have noticed that Guile's R6RS fixnum operations are quite slow; here's a patch to remedy that a bit. What is the state of things here? I'm a bit lost in the

Re: Take some lowhanging fruit to speed up R6RS fixnum operations

2011-03-30 Thread Andreas Rottmann
[ Sorry for the incomplete mail I just sent; hit the wrong key combo ] Andy Wingo wi...@pobox.com writes: On Wed 23 Mar 2011 00:20, Andreas Rottmann a.rottm...@gmx.at writes: In porting dorodango[0], I have noticed that Guile's R6RS fixnum operations are quite slow; here's a patch to remedy

Re: exit dynamic wind

2011-03-30 Thread Andy Wingo
Hello! On Fri 25 Mar 2011 17:45, Andy Wingo wi...@pobox.com writes: On Fri 25 Mar 2011 02:52, Neil Jerram n...@ossau.uklinux.net writes: Andy Wingo wi...@pobox.com writes: I have pushed something that causes the stack to be unwound before exiting. | GENguile-procedures.texi |

Re: Using libunistring for string comparisons et al

2011-03-30 Thread Andy Wingo
On Sun 20 Mar 2011 23:12, l...@gnu.org (Ludovic Courtès) writes: For 2.1.x, things are different. I’m happy to revisit not only the internal storage approach but also the O(1) ref/set! (the latter should be discussed in light of the trend in other Schemes, though.) [...] Again, if you want

Re: proposal: enhance and rename guile-tools

2011-03-30 Thread Andy Wingo
On Mon 21 Mar 2011 22:50, Neil Jerram n...@ossau.uklinux.net writes: - gel is short; and it's the name of Guile before it was Guile; and suggests sticking things together; and AFAIK isn't already being used for anything else; and has similar key positions as gdo, so is equally easy to

on the importance of names (was: proposal: enhance and rename guile-tools)

2011-03-30 Thread Andy Wingo
Howdy, On Mon 21 Mar 2011 00:16, l...@gnu.org (Ludovic Courtès) writes: Andy Wingo wi...@pobox.com writes: Guido, compile my-file.scm. Is the pun[*] intended? :-) OK, point taken. Too bad though! I have another proposal, but first I want to elaborate on why I think guile-tools is a

Re: Using libunistring for string comparisons et al

2011-03-30 Thread Andy Wingo
On Tue 15 Mar 2011 23:49, Mark H Weaver m...@netris.org writes: Well, we covered O(1) vs O(n).  To make UTF-8 O(1), you need to store additional indexing information of some sort.  There are various schemes, but, depending the the scheme, you lose some of memory advantage of UTF-8 vs UTF-32. 

Re: Using libunistring for string comparisons et al

2011-03-30 Thread Andy Wingo
On Sun 13 Mar 2011 22:30, l...@gnu.org (Ludovic Courtès) writes: So yes, the current implementation has bugs, but I think most if not all can be fixed with minimal changes. Would you like to look into it for 2.0.x? I very much agree with this sentiment for 2.0.x. Let's not let the perfect

Re: on the importance of names (was: proposal: enhance and rename guile-tools)

2011-03-30 Thread nalaginrut
Howdy, On Mon 21 Mar 2011 00:16, l...@gnu.org (Ludovic Courtès) writes: Andy Wingo wi...@pobox.com writes: Guido, compile my-file.scm. Is the pun[*] intended? :-) OK, point taken. Too bad though! I have another proposal, but first I want to elaborate on why I think

Re: Immediate pointers

2011-03-30 Thread Andy Wingo
On Sun 30 Jan 2011 23:46, l...@gnu.org (Ludovic Courtès) writes: The problem is that each ‘make-pointer’ call (and ‘dereference-pointer’, etc.) conses. This can make conversion to/from C quite inefficient. We could simply allow Scheme integers to work as pointers. It's not very nice though.

Re: on the importance of names

2011-03-30 Thread Ludovic Courtès
Hello Guilers of the Guild! Andy Wingo wi...@pobox.com writes: So! My new proposal is guild. [...] But that doesn't mention the real advantage of guild, which is how you feel when you type it or tell it to someone: that you pertain to a secret society of wizards! Who wouldn't want to

Re: bdw-gc includes in libguile.h

2011-03-30 Thread Ludovic Courtès
Hello! Andy Wingo wi...@pobox.com writes: On Mon 28 Mar 2011 22:40, l...@gnu.org (Ludovic Courtès) writes: 1. Disable pthread redirects and instead register threads explicitly (in ‘scm_with_guile’). Why is this only applicable to 2.1 ? I was thinking it’d break the ABI, but maybe

Re: bdw-gc includes in libguile.h

2011-03-30 Thread Andy Wingo
Hi! On Wed 30 Mar 2011 18:15, l...@gnu.org (Ludovic Courtès) writes: Hello! Andy Wingo wi...@pobox.com writes: On Mon 28 Mar 2011 22:40, l...@gnu.org (Ludovic Courtès) writes: 1. Disable pthread redirects and instead register threads explicitly (in ‘scm_with_guile’). OK, then

Re: on the importance of names

2011-03-30 Thread Andy Wingo
On Wed 30 Mar 2011 17:52, l...@gnu.org (Ludovic Courtès) writes: Hello Guilers of the Guild! Haha! Hello, Guiler of the Guild! Andy Wingo wi...@pobox.com writes: So! My new proposal is guild. [...] But that doesn't mention the real advantage of guild, which is how you feel when you

Re: on the importance of names

2011-03-30 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: So! My new proposal is guild. guild update guild compile foo.scm guild install fmt Yes, that's nice. Neil

Re: proposal: enhance and rename guile-tools

2011-03-30 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: On Mon 21 Mar 2011 22:50, Neil Jerram n...@ossau.uklinux.net writes: - gel is short; and it's the name of Guile before it was Guile; and suggests sticking things together; and AFAIK isn't already being used for anything else; and has similar key

Re: exit dynamic wind

2011-03-30 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: | GENguile-procedures.texi | guile: uncaught throw to wrong-type-arg: (#f Wrong type (expecting ~A): ~S (exact integer (#t #catch-closure 9916c10 #catch-closure 9916be0)) ((#t #catch-closure 9916c10 #catch-closure 9916be0))) This, it turns out, was

[Neil Jerram] avoid running GC when SCM_I_CURRENT_THREAD is unset

2011-03-30 Thread Neil Jerram
[sorry, this should of course have been CC'd to the list too...] Hi Andy, I saw this change and couldn't fully understand it. Given that you ended up adding GC_disable() and GC_enable() around the GC_malloc() call, couldn't you just have done that without all the other changes from t- to t. ?

Re: exit dynamic wind

2011-03-30 Thread Mike Gran
- Original Message - From:Neil Jerram n...@ossau.uklinux.net To:Andy Wingo wi...@pobox.com Cc:bug-gu...@gnu.org; Ian Price ianpric...@googlemail.com; guile-devel guile-devel@gnu.org Sent:Wednesday, March 30, 2011 11:31 AM Subject:Re: exit dynamic wind Andy Wingo

Re: exit dynamic wind

2011-03-30 Thread Andy Wingo
On Wed 30 Mar 2011 20:31, Neil Jerram n...@ossau.uklinux.net writes: Andy Wingo wi...@pobox.com writes: | GENguile-procedures.texi | guile: uncaught throw to wrong-type-arg: (#f Wrong type (expecting ~A): ~S (exact integer (#t #catch-closure 9916c10 #catch-closure 9916be0)) ((#t

Re: exit dynamic wind

2011-03-30 Thread Andy Wingo
On Wed 30 Mar 2011 21:06, Mike Gran spk...@yahoo.com writes: - Original Message - From:Neil Jerram n...@ossau.uklinux.net To:Andy Wingo wi...@pobox.com Cc:bug-gu...@gnu.org; Ian Price ianpric...@googlemail.com; guile-devel guile-devel@gnu.org Sent:Wednesday, March 30, 2011 11:31 AM

Re: avoid running GC when SCM_I_CURRENT_THREAD is unset

2011-03-30 Thread Andy Wingo
Hi Neil! Adding guile-devel; I'm wrong a lot lately, and folks should know ;-) On Wed 30 Mar 2011 21:11, Neil Jerram n...@ossau.uklinux.net writes: I saw this change and couldn't fully understand it. Given that you ended up adding GC_disable() and GC_enable() around the GC_malloc() call,

Re: avoid running GC when SCM_I_CURRENT_THREAD is unset

2011-03-30 Thread Neil Jerram
Andy Wingo wi...@pobox.com writes: Hi Neil! Adding guile-devel; I'm wrong a lot lately, and folks should know ;-) On Wed 30 Mar 2011 21:11, Neil Jerram n...@ossau.uklinux.net writes: I saw this change and couldn't fully understand it. Given that you ended up adding GC_disable() and

Problems with guile-sqlite3

2011-03-30 Thread Detlev Zundel
Hi, having a all new shiny, I wanted to do some random tests with it and turned to Andys sqlite3 bindings[1]. Compiling and installing worked like a breeze but I'm having some beginners trouble. Looking into sqlite3.scm I gather that the following session should open up a connection to my mydb

Re: Guile 2.0 eating memory on ARM

2011-03-30 Thread nalaginrut
Hi there... I think I've successfully cross-compiled Guile (stable-2.0, e309f3bf9e) for my Freerunner phone. However, when I run it, it just keeps allocating memory until the OOM killer kills it: root@om-gta02 ~ # guile -c 3 Killed root@om-gta02 ~ # guile Killed and if I strace it,

Re: GSoC 2011

2011-03-30 Thread Diogo F. S. Ramos
Noah Lavine noah.b.lav...@gmail.com writes: Hello, Hi! I'm no expert on what the project needs done, but I noticed your email has been sitting for a few days with no reply. Have you been talking to people on IRC? Not since the e-mail. I'm still waiting for feedback. -- Diogo F. S. Ramos

[PATCH] more descriptive error for dynamic-pointer

2011-03-30 Thread Mike Gran
Hi- dynamic-pointer relies on lt_dlerror for its error message, and that procedure can return the unhelpful string No Error when lt_dlsym fails to find a symbol.  You might fix it like I did in the following patch. Thanks, Mike    0001-More-descriptive-error-for-dynamic-pointer.patch

Re: GSoC 2011

2011-03-30 Thread Noah Lavine
Not since the e-mail. I'm still waiting for feedback. I will tell you what I think, then, but keep in mind that many people on this list know a lot more than I do. The first idea is something I think Guile people are very interested in, and you could expect to do significant work, possibly