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 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 (scm_i_init_thread_for_gu

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 o

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

2011-03-30 Thread Andreas Rottmann
Andy Wingo writes: > On Wed 23 Mar 2011 00:20, Andreas Rottmann 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 discussion :) > > You said

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 writes: > On Wed 23 Mar 2011 00:20, Andreas Rottmann 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 th

Re: Using libunistring for string comparisons et al

2011-03-30 Thread Andy Wingo
On Sat 19 Mar 2011 15:06, Mark H Weaver writes: > Let me ask you this: why would you oppose changing the scm_c_ functions > to use UTF-8 by default? If you're comfortable with ASCII-only names, > then UTF-8 will work fine for you, since ASCII strings are unchanged in > UTF-8. This is true. Wel

Re: Using libunistring for string comparisons et al

2011-03-30 Thread Andy Wingo
Hi Mark! I think UTF-8 could be a good plan for 2.1/2.2, but I wanted to make sure we understand what string-ref is good for... On Sat 12 Mar 2011 00:09, Mark H Weaver writes: > I claim that any reasonable code which currently uses string-ref and > string-set! could be more cleanly written usin

Re: exit & dynamic wind

2011-03-30 Thread Andy Wingo
Hello! On Fri 25 Mar 2011 17:45, Andy Wingo writes: > On Fri 25 Mar 2011 02:52, Neil Jerram writes: > >> Andy Wingo writes: >> >>> I have pushed something that causes the stack to be unwound before >>> exiting. >> >> | GENguile-procedures.texi >> | guile: uncaught throw to wrong-type-arg

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 w

Re: proposal: enhance and rename guile-tools

2011-03-30 Thread Andy Wingo
On Mon 21 Mar 2011 22:50, Neil Jerram 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 type. Gel is go

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 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 silly name.

Re: Using libunistring for string comparisons et al

2011-03-30 Thread Andy Wingo
On Tue 15 Mar 2011 23:49, Mark H Weaver 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.  You can

Re: O(1) accessors for UTF-8 backed strings

2011-03-30 Thread Andy Wingo
On Sun 13 Mar 2011 05:05, Mark H Weaver writes: > l...@gnu.org (Ludovic Courtès) writes: >> I also think strings should remain what they currently are, with O(1) >> random access. > > I just realized that it is possible to implement O(1) accessors for > UTF-8 backed strings. If we switch to UTF-

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 Noah Lavine
The coolness is irrefutable. :-) On Wed, Mar 30, 2011 at 7:08 AM, Andy Wingo wrote: > Howdy, > > On Mon 21 Mar 2011 00:16, l...@gnu.org (Ludovic Courtès) writes: > >> Andy Wingo writes: >> >>> "Guido, compile my-file.scm." >> >> Is the pun[*] intended?  :-) > > OK, point taken.  Too bad though!

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 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 > g

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 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 pertain to

Re: bdw-gc includes in libguile.h

2011-03-30 Thread Ludovic Courtès
Hello! Andy Wingo 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 ma

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 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,

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 writes: > >> So! My new proposal is "guild". > > [...] > >> But that doesn't mention the real advantage of "guild", which is how you >> feel when you ty

Re: on the importance of names

2011-03-30 Thread Neil Jerram
Andy Wingo 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 writes: > On Mon 21 Mar 2011 22:50, Neil Jerram 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 >> equa

Re: exit & dynamic wind

2011-03-30 Thread Neil Jerram
Andy Wingo writes: >>> | GENguile-procedures.texi >>> | guile: uncaught throw to wrong-type-arg: (#f Wrong type (expecting ~A): >>> ~S (exact integer (#t # #)) >>> ((#t # #))) > > This, it turns out, was something more pernicious, fixed in > 572eef50c2d902d34427945dd504ba03af666e48. Than

[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 > To:Andy Wingo > Cc:bug-gu...@gnu.org; Ian Price ; guile-devel > > Sent:Wednesday, March 30, 2011 11:31 AM > Subject:Re: exit & dynamic wind > > Andy Wingo writes: > > >>> |  GEN    guile-procedures.texi > >>> | guile: uncaught throw to wron

Re: exit & dynamic wind

2011-03-30 Thread Andy Wingo
On Wed 30 Mar 2011 20:31, Neil Jerram writes: > Andy Wingo writes: > | GENguile-procedures.texi | guile: uncaught throw to wrong-type-arg: (#f Wrong type (expecting ~A): ~S (exact integer (#t # #)) ((#t # #))) >> >> This, it turns out, was something more pernicious, f

Re: exit & dynamic wind

2011-03-30 Thread Andy Wingo
On Wed 30 Mar 2011 21:06, Mike Gran writes: > - Original Message - >> From:Neil Jerram >> To:Andy Wingo >> Cc:bug-gu...@gnu.org; Ian Price ; guile-devel >> >> Sent:Wednesday, March 30, 2011 11:31 AM >> Subject:Re: exit & dynamic wind >> >> Andy Wingo writes: >> >> >>> |  GEN    gui

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 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, couldn't you just have

Re: exit & dynamic wind

2011-03-30 Thread Andy Wingo
On Wed 30 Mar 2011 23:25, Andy Wingo writes: > We didn't see this issue before because compiling eval.scm did not cause > a `throw'. Interesting, no? But since I changed the implementation of > ensure-writable-dir to one that probably throws, we see this error. Sorry, forgot to mention somethi

Re: exit & dynamic wind

2011-03-30 Thread Neil Jerram
Andy Wingo writes: > As for explanations... Catch and throw are implemented using fluids and > prompt and abort. (A discussion of that is here: > http://wingolog.org/archives/2010/02/14/sidelong-glimpses .) An abort > can pass arguments to the prompt's abort handler. It does so by pushing > th

Re: "avoid running GC when SCM_I_CURRENT_THREAD is unset"

2011-03-30 Thread Neil Jerram
Andy Wingo 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 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(

Guile 2.0 eating memory on ARM

2011-03-30 Thread Neil Jerram
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, the log ends

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

Re: GSoC 2011

2011-03-30 Thread Noah Lavine
Hello, 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? Noah On Mon, Mar 28, 2011 at 12:51 AM, Diogo F. S. Ramos wrote: > Hello everybody, > > I've been following some discussions about

Re: GSoC 2011

2011-03-30 Thread Diogo F. S. Ramos
Noah Lavine 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 Descript

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 havi