按年被提到
20232026 · 2 次2026
编程语言与编译器›编译器与运行时优化·arXiv:2310.13589 · cs.PL

A R4RS Compliant REPL in 7 KB

7 KB 中的 R4RS 兼容 REPL
Léonard Oest O'Leary, Mathis Laroche, Marc Feeley · 2023

7 KB 可执行文件里的 R4RS 兼容 Scheme REPL

开始阅读 ↗PDFalphaXiv 讨论
被推荐 · 3 人首次 2023-11-02 · 最近 2026-09-19
3不同的人
3活跃月份
4讨论串
4被引(OpenAlex)

Ribbit 是一个运行在 Ribbit 虚拟机(RVM)上的紧凑 Scheme 实现,已移植到十几种宿主语言,并提供简单的外部函数接口(FFI)。作者把它扩展到符合 R4RS 标准,同时尽量保持紧凑,得到一个只有 7 KB Linux 可执行文件的 R4RS 兼容 REPL。论文解释了过程中遇到的各种问题和对应的解决办法,称其可能是有史以来最小的 R4RS 兼容 Scheme 实现。

HN 为什么提它

评论者(包括作者)把它介绍为体积极小、可移植性强的 Scheme 实现,引用其第 4 节解释为何选择 R4RS,并拿它与其他微型 Scheme 对比。

方法难度 3 / 5约 40 分钟经得起时间
读之前最好知道
1Scheme 语言与 R4RS 标准
2虚拟机与字节码
3解释器 / REPL 的实现
4二进制体积优化

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
推荐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
Ribbit: A portable, compact and extensible R4RS Scheme implementation原评论 ↗
引用so-cal-schemer · 2026-09

“This leads to a R4RS compliant REPL that fits in an 7 KB Linux executable.”

介绍成果:得到一个仅 7 KB 的 Linux 可执行文件,兼容 R4RS 的 REPL
Ribbit: A Small Scheme VM, Compiler and REPL in 4K (2021) [video]原评论 ↗
引用so-cal-schemer · 2026-09

“Here is another tiny and highly portable Scheme that I submitted along with this:”

借此论文的话题,顺带分享另一个小巧且高度可移植的 Scheme
LispBM is a concurrent Lisp for microcontrollers with message passing原评论 ↗
被提交为 story · 1 次