Re: [CM] R7RS support

2022-01-25 Thread bil
Thanks for all that info! I'll fix the r7rs.scm file name stuff, probably tomorrow. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] R7RS support

2022-01-25 Thread mike
does any other scheme treat the names that way? Chibi’s module handling is similar to Guile: modules are searched for in a module load path. The definition of the module (foo bar baz) is searched for in the file "foo/bar/baz.sld". http://synthcode.com/scheme/chibi#h3_ModuleSystem Chicken

Re: [CM] R7RS support

2022-01-25 Thread bil
On the guile library filename handling, does any other scheme treat the names that way? I have added the rest of the built-in libaries to r7rs.scm: eval, process-context, case-lambda, lazy, load, and repl. s7 ignores these import statements. (display "hi" (current-error-port)) works for me.

Re: [CM] R7RS support

2022-01-21 Thread bil
Thanks. (*s7* 'filenames) should be (*s7* 'file-names). If you don't want the libc stuff, just comment out the (require libc.scm) at the top of the file. I didn't realize that r7rs thinks current-output-port is a built-in parameter object. It isn't in s7 -- sorry.

Re: [CM] R7RS support

2022-01-19 Thread bil
Thanks! I'll merge those changes into my version. r7rs.scm can almost pass the chibi r7rs tests -- if I had 2 minutes of uninterrupted time, I'd be done. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] R7RS support

2022-01-18 Thread mike
Do you know if there is a test suite for the r7rs additions? There are a lot of tests in the chibi-scheme repo, e.g.: https://github.com/ashinn/chibi-scheme/blob/master/tests/r7rs-tests.scm I’m not sure if that’s what you were seeking, but hopefully it’s useful. It appears to cover many R7RS

Re: [CM] R7RS support

2022-01-18 Thread bil
As a beginner, I ask: Do you approve? Yes. (It also made me scared to use the R7RS features!) Do you know if there is a test suite for the r7rs additions? To finish the job, I made the libraries load *implicitly* with … Oh, I assumed the libraries were already loaded -- could you send

Re: [CM] R7RS support

2022-01-17 Thread mike
Thanks Iain, great observations and info. Yes, we’ve read s7.html many times and will continue to do so. There’s a lot of great info there! (We’ve found many of the included scm files are also good sources too.) FYI, we’re looking at adopting R7RS more as a future-proofing strategy than “we

Re: [CM] R7RS support

2022-01-17 Thread bil
The with-exception definition in r7rs.scm probably should be (define (with-exception-handler handler thunk) (catch #t thunk (lambda args (apply handler args The define-library code dates from the days (years ago) when s7's define-macro returned the symbol rather than the value. Also, I

Re: [CM] R7RS support

2022-01-17 Thread Iain Duncan
Hi Rudolf, Bill would be the person to address this better than me, but I think the Egghead team should read through the s7.html page pretty closely to see if s7 is a good fit. It's pretty clear in there that there is *limited* R7RS compatibility, but that s7 is not R7RS and nor is that a stated