4 ms·
Chibi scheme has almost all of those things, except non-hygienic macros: https://synthcode.com/scheme/chibi/ https://synthcode.com/scheme/chibi/ It's R7RS sche
by ristos 2y ago
Chibi scheme has almost all of those things, except non-hygienic macros:
https://synthcode.com/scheme/chibi/ https://synthcode.com/scheme/chibi/
It's R7RS scheme, which is a very small, well designed core for lisp. 13k LOCs of C. Very easy to embed, and a nice C FFI. I absolutely love it.
Geiser supports Chibi scheme out of the box, and I wrote this simple nREPL for it that I use: https://github.com/Risto-Stevcev/chibi-repl-server/ https://github.com/Risto-Stevcev/chibi-repl-server/
I use delimited continuations for conditions and restarts:
https://gist.github.com/Risto-Stevcev/e6fd8417e34ef74a74adfadc468ea7d1 https://gist.github.com/Risto-Stevcev/e6fd8417e34ef74a74adfa...
- HexDecOctBin 2y agoChibi seems to rely on Cygwin/MSYS for Windows which is a pretty heavy dependency (and very non-Lua). https://github.com/ashinn/chibi-scheme/blob/master/README-win32.md https://github.com/ashinn/chibi-scheme/blob/master/README-wi...
- ristos 2y agoI think the posix stuff is only if you're using some of chibi's batteries-included libraries, like filesystem, regexp, shell, tar, zlib. You can probably pretty easily just stub all those files or remove them from the make build and it should build fine. The r7rs core code and libraries don't rely on anything posix related.
- HexDecOctBin 2y agoI see, thanks! Will take a look at it.