Re: execlp

2011-11-23 Thread Paul Emsley
Hi Nala Ginrut, Thanks for your reply. I suspect I expressed myself poorly. (execlp "ls" "") replaces guile with "ls", which lists my files and returns me to the shell. What is some-function, where some-function works like this: (some-function "ls") -> "/bin/ls" (I'd settle for #t") (some-f

Re: execlp

2011-11-23 Thread Nala Ginrut
Well, I'm glad to help. ;-) And I think any "Segment Fault" must be a bug. So I sent a letter for this in guile-dev. On Wed, Nov 23, 2011 at 8:16 PM, Paul Emsley wrote: > Hi Nala Ginrut, > > Thanks for your reply. > > I suspect I expressed myself poorly. (execlp "ls" "") replaces guile with > "ls

Re: execlp

2011-11-23 Thread Nala Ginrut
On Wed, Nov 23, 2011 at 8:16 PM, Paul Emsley wrote: > Hi Nala Ginrut, > > Thanks for your reply. > > I suspect I expressed myself poorly. (execlp "ls" "") replaces guile with > "ls", which lists my files and returns me to the shell. > > What is some-function, where some-function works like this: >

Re: bug#10093: Problem compiling related to block-growth-factor fluid

2011-11-23 Thread Andy Wingo
On Mon 21 Nov 2011 14:35, ri...@happyleptic.org writes: > Here is a minimal example reproducing the problem. > Note that it only fails the first time (when scheme.scm is compiled). Fixed in stable-2.0. Thanks for the report! Andy -- http://wingolog.org/

Re: execlp

2011-11-23 Thread rixed
-[ Wed, Nov 23, 2011 at 08:28:56PM +0800, Nala Ginrut ] > I think there's no such a given function in Guile to do this. > But you can make it in a easy way in Guile: > (catch 'system-error > (lambda () (execlp "asdfasdf")) > (lambda (k . e) > (format #t "oh no~%~"))) > > PS:

Re: bug#10093: Problem compiling related to block-growth-factor fluid

2011-11-23 Thread Ludovic Courtès
Hello! Andy Wingo skribis: > On Mon 21 Nov 2011 14:35, ri...@happyleptic.org writes: > >> Here is a minimal example reproducing the problem. >> Note that it only fails the first time (when scheme.scm is compiled). > > Fixed in stable-2.0. Thanks for the report! So what was the deal? One threa

Re: execlp

2011-11-23 Thread Nala Ginrut
On Wed, Nov 23, 2011 at 10:03 PM, wrote: > -[ Wed, Nov 23, 2011 at 08:28:56PM +0800, Nala Ginrut ] > > I think there's no such a given function in Guile to do this. > > But you can make it in a easy way in Guile: > > (catch 'system-error > > (lambda () (execlp "asdfasdf")) > > (lamb

Re: bug#10093: Problem compiling related to block-growth-factor fluid

2011-11-23 Thread Andy Wingo
Hi :) On Wed 23 Nov 2011 15:06, l...@gnu.org (Ludovic Courtès) writes: > So what was the deal? One thread would see an uninitialized fluid, > right? Yes, because threads that are not created by Guile do not share the dynamic state with the threads that made (and set) the fluids, so they get #f

Run today’s Guile on today’s GNU!

2011-11-23 Thread Ludovic Courtès
Hi! Thanks to the advent of high-tech continuous integration, it is now[*] possible to get a QEMU image of the latest GNU operating system (aka. GNU/Hurd), containing the latest Guile 2.0.x, off their respective version-control systems: http://hydra.nixos.org/job/gnu/hurd-master/qemu_image/late

snarf .h files

2011-11-23 Thread Mike Gran
Hi-   Is there a script that will scrape SCM_DEFINEs from c files to make header declarations to put in .h files?   Basically to search for c file definitions like this...   SCM_DEFINE (cfunc, "gfunc", 1, 0, 0, (SCM arg), "a function");   and return header declarations like this   SCM cfunc (SCM ar

Re: snarf .h files

2011-11-23 Thread Ludovic Courtès
Hi Mike, Mike Gran skribis: > Basically to search for c file definitions like this... >   > SCM_DEFINE (cfunc, "gfunc", 1, 0, 0, (SCM arg), "a function"); >   > and return header declarations like this >   > SCM cfunc (SCM arg); There’s no such tool AFAIK, but you can always come up with one.

Re: bug#10093: Problem compiling related to block-growth-factor fluid

2011-11-23 Thread Ludovic Courtès
Hi! Andy Wingo skribis: > Yes, because threads that are not created by Guile do not share the > dynamic state with the threads that made (and set) the fluids, so they > get #f as the fluid value. Oh, I see. > I fixed this by making it possible to create a fluid whose default > value, in all dy

Re: execlp

2011-11-23 Thread Thien-Thi Nguyen
() Paul Emsley () Wed, 23 Nov 2011 12:16:47 + What is some-function, where some-function works like this: (some-function "ls") -> "/bin/ls" (I'd settle for #t") (some-function "asdfasdf") -> #f You can try something like: (use-modules (srfi srfi-13) (srfi srfi-14)) (define

Re: Run today’s Guile on today’s GNU!

2011-11-23 Thread Mike Gran
> From: Ludovic Courtès > >Hi! > >Thanks to the advent of high-tech continuous integration, it is now[*] >possible to get a QEMU image of the latest GNU operating system >(aka. GNU/Hurd), containing the latest Guile 2.0.x, off their respective >version-control systems: Cool. Is Guile a staticall

Re: Run today’s Guile on today’s GNU!

2011-11-23 Thread Ludovic Courtès
Hi Mike! Mike Gran skribis: >> From: Ludovic Courtès >> >>Hi! >> >>Thanks to the advent of high-tech continuous integration, it is now[*] >>possible to get a QEMU image of the latest GNU operating system >>(aka. GNU/Hurd), containing the latest Guile 2.0.x, off their respective >>version-contr

smob mark functions in 2.0

2011-11-23 Thread Andy Wingo
Hello all, I don't know how you feel, but for me the BDW garbage collector used in Guile 2.0 has made my life much easier than it was. You typically don't have to write SMOB marking functions any more. However, I just fixed a bug in g-wrap that was a bit surprising to me. If you do implement a S

Re: smob mark functions in 2.0

2011-11-23 Thread Ludovic Courtès
Hello! Andy Wingo skribis: > Specifically, there is a warning in gc/gc_mark.h: > > /* WARNING: Such a mark procedure may be invoked on an unused object*/ > /* residing on a free list. Such objects are cleared, except for a */ > /* free list link field in the first word. Thu

guile user base

2011-11-23 Thread rixed
Warning, non-technical ramblings incoming. In your opinion, how does guile user community compare (in size) with other free schemes user communities? I am under the impression that guile user base is somewhat smaller than chicken' or racket', but to what extent? And how could we roughly figure th

Re: snarf .h files

2011-11-23 Thread Mike Gran
> From: Ludovic Courtès >> Basically to search for c file definitions like this... >>   >> SCM_DEFINE (cfunc, "gfunc", 1, 0, 0, (SCM arg), "a function"); >>   >> and return header declarations like this >>   >> SCM cfunc (SCM arg); > >There’s no such tool AFAIK, but you can always come up with on