[ prog / sol / mona ]

prog


Scheme on bare metal

1 2022-01-29 02:47

Mimosa:
https://icfp20.sigplan.org/details/scheme-2020-papers/3/Running-Scheme-On-Bare-Metal-Experience-Report-
https://github.com/udem-dlteam/mimosa
https://www.youtube.com/watch?v=GWr4iQfc0uw

Loko:
https://scheme.fail/manual/loko.html

2 2022-01-29 05:22

Look at the Scheme-79 chip.

3 2022-01-29 09:23

In SICP, section 5.6 "The Explicit-Control Evaluator" shows an image of "a silicon-chip implementation of an evaluator for Scheme". The SICP video lectures show an example of such a chip.

4 2022-01-31 02:50

sectorlisp is a 512-byte implementation of LISP that's able to bootstrap John McCarthy's meta-circular evaluator on bare metal.

https://justine.lol/sectorlisp2/

SectorLISP now supports garbage collection. This is the first time that a high-level garbage collected programming language has been optimized to fit inside the 512-byte boot sector of a floppy disk. Since we only needed 436 bytes, that means LISP has now outdistanced FORTH and BASIC to be the tiniest programming language in the world.

SectorLISP consists of 223 lines of assembly. It provides a LISP system that's powerful enough to let you write your own LISP interpreter in just 40 lines of LISP. It's compatible with all PC models dating back to 1981 which have at least 64kb of RAM. This isn't a toy because SectorLISP can run the proof assistant that was included in LISP 1.5. We achieved the small file size thanks to 20/20 hindsight and an unbiased approach of maximum austerity. The goal of this project has been to have fun building a kit that optimizes for file size at the expense of everything else, which means SectorLISP has more in common with a game like Universal Paperclips than a talking paperclip like Clippy.

5 2022-02-01 05:08

>>4
It makes me happy to know this is possible.

6


VIP:

do not edit these