Re: guile-xapian 0.4.0 released

2024-05-10 Thread Nala Ginrut
Congrats! I'm not familiar with Xapian, is it possible to do similar things as VectorDB? Best regards. On Fri, May 10, 2024, 23:56 Arun Isaac wrote: > > Hi all, > > guile-xapian 0.4.0 has been released. > > guile-xapian provides Guile bindings for Xapian[1], a search engine > library used in po

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

2024-05-10 Thread Olivier Dion
On Fri, 10 May 2024, "Dr. Arne Babenhauserheide" wrote: This is entirely off topic, sorry, but how do you do the following in Emacs: > ┌ > │ ... > └ I usualy use: --8<---cut here---start->8--- ... --8<---cut here---end

GNU G-Golf 0.8.0-rc-4 available for testing

2024-05-10 Thread David Pirotte
Hello Guilers, The fourth release candidate of the upcoming GNU G-Golf 0.8.0 release is now available for testing: * Tarball and a GPG detached signature [*]: http://ftp.gnu.org/gnu/g-golf/g-golf-0.8.0-rc-4.tar.gz http://ftp.gnu.org/gnu/g-golf/g-golf-0.8.0-rc-4.tar.gz.sig * Inst

Re: with-syntax return error in Guile, not in Kawa or Racket

2024-05-10 Thread Damien Mattei
On Sat, May 11, 2024 at 12:23 AM Jean Abou Samra wrote: > > it is clear that calling <- via ← give a bad result, if instead i use > directly > > <- code works. > > OK, I think I get it now: > > (define-syntax <- > (lambda (sintax) > (syntax-case sintax () > ((<- arg) >(datum->

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

2024-05-10 Thread Zelphir Kaltstahl
On 10.05.24 15:47, Dr. Arne Babenhauserheide wrote: Hi, in #guile on IRC¹, old talked about Typed Racket so I thought whether that could be done with define-syntax-rule. So I created define-typed. This is also on my website², but I wanted to share and discuss it here. I follow the format by [sp

Re: with-syntax return error in Guile, not in Kawa or Racket

2024-05-10 Thread Jean Abou Samra
> it is clear that calling <- via ← give a bad result, if instead i use directly > <- code works. OK, I think I get it now: (define-syntax <- (lambda (sintax) (syntax-case sintax () ((<- arg) (datum->syntax sintax (syntax->datum #'arg)) ;; Works: (let ((foo "ABCD\n")) (d

Re: with-syntax return error in Guile, not in Kawa or Racket

2024-05-10 Thread Damien Mattei
On Fri, May 10, 2024 at 5:24 PM Jean Abou Samra wrote: > > the built-in let macro creates a kind of "access token" for the variable > lin, and marks the body (display (mac lin)) with that token so that it > has the variable lin in scope. This is so that forms introduced by macros > (like mac here

Re: with-syntax return error in Guile, not in Kawa or Racket

2024-05-10 Thread Damien Mattei
On Fri, May 10, 2024 at 5:24 PM Jean Abou Samra wrote: > > I'd need a reproducible example to debug this. I have no explanation > other than that there must be a trivial mistake somewhere in your > code or testing procedure (happens to everyone). > > i will try to isolate the problem out of 1

Re: with-syntax return error in Guile, not in Kawa or Racket

2024-05-10 Thread Jean Abou Samra
> but there should be something different with my macro and code because if i > put: > > (define-syntax ← > (syntax-rules () > ((← . args) > (<- . args > > in my code i get again the warnings at compilation: > > ;;; /Users/mattei/library-FunctProg/guile/logiki+.scm:2526:19: warnin

guile-xapian 0.4.0 released

2024-05-10 Thread Arun Isaac
Hi all, guile-xapian 0.4.0 has been released. guile-xapian provides Guile bindings for Xapian[1], a search engine library used in popular applications such as the notmuch email system. Xapian is a highly adaptable toolkit which allows developers to easily add advanced indexing and search facili

using guile like a awk filter in a C program.

2024-05-10 Thread Pierre LINDENBAUM
Hi all, I tried to learn guile a few years ago with a side project that went nowhere. I'm now back with guile that I would like to use as a filter, just like awk, for my data. I've got question about the general design of such program. My program uses a C library ( https://github.com/samt

Re: with-syntax return error in Guile, not in Kawa or Racket

2024-05-10 Thread Damien Mattei
i re-test all, and your are right this working: (define-syntax foo (syntax-rules () ((foo . args) (display 'args (define-syntax bar (syntax-rules () ((bar . args) (foo . args (foo 1 2 3) (1 2 3) (bar 1 2 3) (1 2 3) (foo 1) (1) (bar 1) (1) (define-syntax my-macro (sy

Re: with-syntax return error in Guile, not in Kawa or Racket

2024-05-10 Thread Jean Abou Samra
> sorry, but this can not works because my macro is defined this way: > (define-syntax <- > (lambda (stx) > (syntax-case stx () > ;; silly case > ((_ ( ) expr) >#'(void)) ;; void is not portable ;'()) > ;; one value in values ! > ;; > {(x) <- (values 7)} >

Re: with-syntax return error in Guile, not in Kawa or Racket

2024-05-10 Thread Damien Mattei
On Fri, May 10, 2024 at 12:35 AM Jean Abou Samra wrote: > > > > Le 9 mai 2024 à 23:57, Damien Mattei a écrit : > > > > it worked now removing the syntax->datum but not in all programs , i do > not > > know why, program it fails was overloading some operator so i think the > > syntax symbol of o

define-typed: checking values on proc entry and exit

2024-05-10 Thread Dr. Arne Babenhauserheide
Hi, in #guile on IRC¹, old talked about Typed Racket so I thought whether that could be done with define-syntax-rule. So I created define-typed. This is also on my website², but I wanted to share and discuss it here. I follow the format by [sph-sc], a Scheme to C compiler. It declares types after