Residua playground
Consoleloading the compiler, 4.3 MB

source

…
 

front end, rsdc.wasm

…
 

back end, rsc.wasm

…
 

run, this browser

…
 

Every program through the whole chain

Each program is compiled and run in this browser. The core module must be the bytes that the independent OCaml front end writes for the same source, the wasm must be the pinned bytes, and the value must equal the pinned value. A digest names each result, so a difference is found at its hop.

programfront endback endruncore, against OCamlwasm, pinnedvalue

What runs here, and what does not yet

This page uses the compiler of the rsd 0.3 release as published: the two seed modules that rebuild themselves from source. The programs are written in its bootstrap surface, a subset of Lean 4.14.

hopdone byLean needed
text to core modulersdc.wasm, in this pageno
core module to wasmrsc.wasm, in this pageno
wasm to valuethis browser's engineno
Rust-like surfacea syntax extension elaborated by Lean 4.14, outside this pageyes, until Lean's front end runs on this chain
theorems and proofsLean 4.14's kernel and our checker, outside this pageyes, until the checker runs on this chain

A result is named by the SHA-256 of its bytes, written q. The same source gives the same q in every browser and on the command line. The entry of main is reached through a wrapper with thirteen unused words, added before compiling, so the sizes and digests here are of the program with that wrapper.

Source, release and the recipe that rebuilds the compiler: github.com/residua-labs/Residua (Apache-2.0). Editor: CodeMirror 5.65.16 (MIT).