Re: define-typed: checking values on proc entry and exit

2024-05-21 Thread Damien Mattei
Hello, not sure to understand but does GOOPS (Guile object model) allow some sort of check to the argument but perhaps it is only inherent to the procedures of a 'class' in the object model? anyway if you are just interesting in type checking some procedure Scheme+ (ref: 1) that i currently still

Re: guile-xapian 0.4.0 released

2024-05-21 Thread Simon Tournier
Hi Arun, On Fri, 10 May 2024 at 15:55, Arun Isaac wrote: > guile-xapian 0.4.0 has been released. Cool! That’s nice. It’s a motivation for resuming [1] as a Guix extension ;-) 1: [bug#39258] Faster guix search using an sqlite cache Arun Isaac Fri, 24 Jan 2020 01:21:57 +0530 id:cu7pnfaar36...

Re: using guile like a awk filter in a C program.

2024-05-21 Thread Simon Tournier
Hi, On Fri, 10 May 2024 at 15:55, Pierre LINDENBAUM wrote: > ``` > header = read_header(input); > guile_context = my_initialize_guile(header, argc_argv_user_script) > variant = new_variant(); > while(read_variant(input,header,variant)) { > if(!my_guil

Re: using guile like a awk filter in a C program.

2024-05-21 Thread Pierre Lindenbaum
Thanks for your answer - is it possible to use guile for such task ? More precisely, can I compile the guile script just once in `my_initialize_guile` and use it in the while loop without having to recompile it. I am not sure to well understand. Since, it could be read two ways: + Call Schem

Re: using guile like a awk filter in a C program.

2024-05-21 Thread Basile Starynkevitch
Hello Pierre, (if you reply privately, feel free to reply in French, we both are French) You definitely could use libguile in your C program. Since Guile has a conservative garbage collector, and assuming your program is single-threaded, this should be reasonably easy. If your C program needs

Re: guile-xapian 0.4.0 released

2024-05-21 Thread Arun Isaac
> It’s a motivation for resuming [1] as a Guix extension ;-) Ah, I hadn't thought of xapian search as a Guix extension. Nice idea! :-)

Re: guile-xapian 0.4.0 released

2024-05-21 Thread Arun Isaac
>> It’s a motivation for resuming [1] as a Guix extension ;-) > > Ah, I hadn't thought of xapian search as a Guix extension. Nice idea! > :-) I'm happy to mentor someone if they are interested in such a project. > [1]: https://issues.guix.gnu.org/39258