st-scheme
An R7RS-small Scheme interpreter running entirely in your browser via WebAssembly. Built with Rust, Leptos, and Axum.
Environment Modes
st-scheme features a three-tier environment system that demonstrates the relationship between a language's primitives and its standard library:
- Full — All ~90 built-in procedures implemented in Rust. Maximum performance.
- Hybrid — Core Rust builtins plus a Scheme prelude that implements 17 compositional list operations (map, filter, append, etc.) in Scheme itself.
- Minimal — Only ~49 true primitives in Rust. Everything else (46 functions) is self-hosted in Scheme via two prelude files. Educational and demonstrative.
IDE View
Switch to IDE view to see and edit the Scheme prelude source code. In Hybrid and Minimal modes, you can modify the prelude definitions and reload the REPL to experiment with different implementations.