Re: guile-gnome2 - Segmentation fault

2010-07-05 Thread David Pirotte
Hi Andy, guile-gnome users, Launching the following little application example and clicking the 'Start' button systematically provoke a segmentation fault on guile-gnome-2 [and guile-gnome-0] Does it crashes for you [any guile-gnome user willing to try?] too? Thanks, David ps: while buildi

Re: Best way to call a user defined hook (written in guile) from C when the hook need plenty parameters

2010-07-05 Thread Neil Jerram
ri...@happyleptic.org writes: > (define (hook-helper %s) (lambda () #\t)) > > where %s is the long list of parameters (foo bar baz...) that's inserted by > the C program. > And : > > (define (hook . args) (local-eval (cons print-user-fields user-fields) > (procedure-environment (apply hook-helpe

Re: Thread and guile environment

2010-07-05 Thread Neil Jerram
ri...@happyleptic.org writes: > Suppose I have a multithreaded C program. Isn't the guile environment supposed > to be shared amongst all threads ? That's what I understood from reading the > docs anyway. > > Yet this simple exemple shows the opposite (see the 3 attached files). > So am I supposed

guile-gnome - git clone + 3 debian patches - compilation error

2010-07-05 Thread David Pirotte
Hi Andy, From a fresh git clone + the 3 debian patches, I get the following error [below]. [but yesterday i succeeded compiling the debian tree patched with your suggested 2 revname ??] Cheers, David ;; -- the 3 debian patches @ http://patch-tracker.debian.org/pack

Re: Best way to call a user defined hook (written in guile) from C when the hook need plenty parameters

2010-07-05 Thread Thien-Thi Nguyen
() ri...@happyleptic.org () Mon, 5 Jul 2010 10:56:36 +0200 Can anyone suggest a better way to do this ? For "a set of named values", you can use an association list. If the paren verbosity is off-putting, a common way is to take/show plists externally (minimal (one) set of parens). So, user

Re: Trying guile as an extention language for a 'real world' product

2010-07-05 Thread Thien-Thi Nguyen
() ri...@happyleptic.org () Sat, 3 Jul 2010 07:36:51 +0200 Are there any contraindication against using guile as an extention language for configuration ? I don't think so. Configuration is specialization, moved early. Guile can handle that, as long as early is not too early. thi

Best way to call a user defined hook (written in guile) from C when the hook need plenty parameters

2010-07-05 Thread rixed
Hello ! Frequently, our C program computes a set of approximately 50 values that it wants to make accessible for a user defined call back so that the user can choose to print some of these values (if some condition is met for instance). I first thought to make some C functions accessible that wo

Thread and guile environment

2010-07-05 Thread rixed
Suppose I have a multithreaded C program. Isn't the guile environment supposed to be shared amongst all threads ? That's what I understood from reading the docs anyway. Yet this simple exemple shows the opposite (see the 3 attached files). So am I supposed to source my global scheme definitions in