Re: Equality and hashing for new datatypes

2023-06-23 Thread Robby Zambito
Taylan Kammer writes: > On 23.06.2023 00:45, Philip McGrath wrote: >> >> Thanks, but this is the opposite of what I want to do. The library I'm >> porting >> already supports creating tables with custom equality and hashing functions. >> What I'm trying to do is make the standard `equal?` p

Re: Python slices in Scheme

2023-06-20 Thread Robby Zambito
Jun 20, 2023 02:42:34 Damien Mattei : > what is Sexp Front? On X front is an idiom - search for "on that front" if you want to see examples. Sexp refers to symbolic expressions, which is the typical syntax of Lisp. Robby

Re: Meaning of symbol prefixed with "#$"

2023-05-25 Thread Robby Zambito
"N. Y." writes: > Hi all, > > I was wondering what is the meaning of symbols prefixed with "#$", for > example "#$version" in Guix package definitions. G-Expressions in Guix are created using #~, similar to how S-Expressions are created using ' or ` in Scheme (and other Lisps). The single quot

Re: local eval

2023-04-26 Thread Robby Zambito
Damien Mattei writes: > i can not make it run i always have something unbound , not reach the var i > but local-eval is unbound now? I added this line to the module definition #:re-export (local-eval the-environment) Did you also add that? The way the unhygienic macros work, it essentiall

Re: local eval

2023-04-24 Thread Robby Zambito
Hi Damien The issue you are running into is related to macro hygiene. If you implement eval-var using the non-hygienic define-macro, it works how you want. (define-module (Scheme+) #:use-module (ice-9 local-eval) #:re-export (local-eval the-environment) #:export (eval-var eval-var)) (def

Re: Unable to import (ice-9 psyntax)

2023-02-16 Thread Robby Zambito
Maxime Devos writes: > What are you trying to import (ice-9 psyntax) for? I am trying to write a portable R7RS library which does a relative include for its implementation. The code can be found here: https://git.robbyzambito.me/robby/meta-json.git/tree/lib/zambyte/meta/json.sld?id=334e09f3388

Unable to import (ice-9 psyntax)

2023-02-14 Thread Robby Zambito
Hello, For some reason I am having trouble importing the (ice-9 psyntax) module. Whenever I try to import it, I get the following error: scheme@(guile-user)> (import (ice-9 psyntax)) While compiling expression: No variable named syntax? in # I have Guile 3.0.9 installed from Guix, running on x86

Re: bytevector seems to be missing in Guile

2023-01-08 Thread Robby Zambito
Sascha Ziemann writes: > But quote from R7RS page 29: > >> For convenience and ease of use, the >> global Scheme environment in a REPL must not be empty, >> but must start out with at least the bindings provided by >> the base library. Yes I think it's a bug (or at least misleading) that using

Re: bytevector seems to be missing in Guile

2023-01-07 Thread Robby Zambito
In R7RS, the bytevector constructor is exported by (scheme base) (not (scheme bytevector)). It seems like the confusion is caused by --r7rs not evaluating in an environment that provides (scheme base).