Skip to content

D3PSI/spacey

Repository files navigation

spacey

a tiny, performant, wasm-ready virtual machine in rust

supported and planned frontends:

  • whitespace
  • malbolge
  • brainfuck
  • whatever other language we want to create a frontend for

crates.io and npmjs.org

the library crate is available both as a standard crate spacey as well as a bundled wasm package on npm under node-spacey.

building and running

make sure you have rust and the rust package manager cargo installed on your system. if not, the easiest way to do so is to install rust via rustup.rs.

then, clone the repository and build natively as follows:

git clone https://github.com/D3PSI/spacey.git
cd spacey
cargo build --release

to build for wasm, simply install wasm-pack and execute:

wasm-pack build

to run the provided executable run:

cargo run --release -q -- -h

to show the help screen.

execute whitespace-files like:

cargo run --release -q -- -f ws/hello_world.ws -t whitespace