News for hackers. Stuff that matters.
Re:A small scheme VM, compiler, and REPL in 4k by pumanoir on Friday November 26, 2021 @05:30PM (#29354909)
Can Ribbit w/ the max lib run everything from SICP? It'd be really cool to have a self contained (html or other text) file of the SICP book.
Re:A small scheme VM, compiler, and REPL in 4k by feeley on Friday November 26, 2021 @05:59PM (#29355158)
Ribbit's max library contains most of the R4RS predefined procedures (even call/cc). The main things missing are variadic procedures (unfortunately this includes the "list" procedure so you need to replace (list 1 2 3) by (cons 1 (cons 2 (cons 3 '())))) and also all the file opening operations. There is read-char, write-char, etc but they only do console I/O. These things could be added at the price of a larger footprint. One simple way to do this is to have the RVM run the code of a meta-circular Scheme evaluator written in Scheme.

If you are interested in building a a self-contained HTML document that embeds a full featured Scheme implementation, you should look into Gambit. Check out https://try.gambitscheme.org

Re:A small scheme VM, compiler, and REPL in 4k by pumanoir on Sunday November 28, 2021 @03:31PM (#29372680)
Thanks. I will check it out.