How to fix and improve my one-liner to execute a R7RS program

2022-12-09 Thread Amirouche Boubekki
ute of Technology This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Image saved on Monday December 5, 2022 at 12:25:28 PM Release 12.0.50 || SF || LIAR/x86-64 Best regards, Amirouche ~ https://hyper.dev

scheme case-lambda does not work

2021-12-04 Thread Amirouche
The following program: #; cat foo.scm (import (scheme base) (scheme write) (scheme case-lambda)) (define foo (case-lambda (() 42) ((test) test))) (write (foo)) (write (foo 1337)) With mit-scheme 12.0.50 does not work on my side. Here is the message I have: ;Unbound v

Access procedures from runtime/runtime.pkg

2021-12-04 Thread Amirouche
In collusion with other people, I am trying to build a portable set of libraries. I started with a JSON library (rework of SRFI-180), the current test suite pass with nine Scheme implementation [0]. Question: how can I import procedures that are defined in runtime/runtime.pkg e.g. arithmeti

Re: Unable to import R7RS libraries in the REPL

2021-12-02 Thread Amirouche Boubekki
Sorry, I mis-clicked. > In the above shell run that line: ++ tail -n +2 local/bin/hello-schemer-star will drop #! thingy. Here is the content of local/bin/hello-schemer-star: #;> cat local/bin/hello-schemer-star #!/usr/bin/env -S scheme-live current run (import (scheme base)) (import (scheme pr

Re: Unable to import R7RS libraries in the REPL

2021-12-02 Thread Amirouche Boubekki
Le mer. 1 déc. 2021 à 22:19, Chris Hanson a écrit : > > A lot of these issues are fixed in source but not yet released. You can build > from source if necessary. > On Dec 1, 2021, 10:46 AM -0800, Amirouche Boubekki > , wrote: > > Also, it would be neat to have som

Re: Unable to import R7RS libraries in the REPL

2021-12-01 Thread Amirouche Boubekki
> Also, it would be neat to have something like --library-extensions > option to override the default `.sld` and `.scm` never mind this, the problem was on my side.

Re: Unable to import R7RS libraries in the REPL

2021-12-01 Thread Amirouche Boubekki
Short version: > ; mit-scheme > > (find-scheme-libraries! ".") > (load "main.scm") Will discover `.sld` and `.scm` library files inside the current directory, and load main.scm. I did not find a way to compile an R7RS program to a binary. Also, it would be neat to have something like --library-

Re: Unable to import R7RS libraries in the REPL

2021-12-01 Thread Amirouche Boubekki
The shell prompt starts with single `;`, the expected output of `main.scm` program is: Hello schemer amirouche! Here is the sh session: ; find . . ./main.scm ./live ./live/hello ./live/hello/body.scm ./live/hello.sld ; find . -type f -exec sh -c "echo \";; cat {}\"; ca

Re: [MIT-Scheme-devel] Scheme Coding Competition

2019-08-07 Thread Amirouche Boubekki
sponsor with the next hint. Good luck! Le jeu. 18 juil. 2019 à 15:43, Amirouche Boubekki a écrit : > > I am organizing a Scheme coding competition where you have > to build a static blog generator with a mystery feature (that will > be revealed little by little in the next few mon

[MIT-Scheme-devel] Scheme Coding Competition

2019-07-18 Thread Amirouche Boubekki
I am organizing a Scheme coding competition where you have to build a static blog generator with a mystery feature (that will be revealed little by little in the next few months). We already have sourcehut.org as a sponsort and I am actively looking for other sponsors to reward the participants (g