推荐leonardool · 2024-09
“If you want to read more, section 4 of "A R4RS Compliant REPL in 7 KB" explains our rationale behind the choice of R4RS”
推荐读第 4 节,它解释了 Ribbit 为何在 7 KB REPL 中选择 R4RS
7 KB 可执行文件里的 R4RS 兼容 Scheme REPL
Ribbit 是一个运行在 Ribbit 虚拟机(RVM)上的紧凑 Scheme 实现,已移植到十几种宿主语言,并提供简单的外部函数接口(FFI)。作者把它扩展到符合 R4RS 标准,同时尽量保持紧凑,得到一个只有 7 KB Linux 可执行文件的 R4RS 兼容 REPL。论文解释了过程中遇到的各种问题和对应的解决办法,称其可能是有史以来最小的 R4RS 兼容 Scheme 实现。
评论者(包括作者)把它介绍为体积极小、可移植性强的 Scheme 实现,引用其第 4 节解释为何选择 R4RS,并拿它与其他微型 Scheme 对比。
“If you want to read more, section 4 of "A R4RS Compliant REPL in 7 KB" explains our rationale behind the choice of R4RS”
“This leads to a R4RS compliant REPL that fits in an 7 KB Linux executable.”
“Here is another tiny and highly portable Scheme that I submitted along with this:”