[Scheme'23] A R4RS Compliant REPL in 8Kb
Léonard Oest O'Leary
The Ribbit system is a compact Scheme implementation running on the Ribbit Virtual Machine (RVM) that has been ported to a dozen host languages. It supports a simple Foreign Function Interface (FFI) allowing extensions to the RVM directly from the program’s source code. We have extended the system to offer conformance to the R4RS standard while staying as compact as possible. This leads to a R4RS compliant REPL that fits in an 7 KB Linux executable. This paper explains the various issues encountered and our solutions to make, arguably, the smallest R4RS conformant Scheme implementation of all time.
Authors : - Léonard Oest O’Leary, Université de Montréal - Mathis Laroche, Université de Montréal - Marc Feeley, Université of Montréal
28 авг 2024