Coder Social home page Coder Social logo

d3psi / spacey Goto Github PK

View Code? Open in Web Editor NEW
38.0 1.0 5.0 273 KB

a tiny, wasm-ready virtual machine - stupidly fast

Home Page: https://docs.rs/spacey

License: GNU General Public License v3.0

Rust 68.08% Witcher Script 31.92%
parser rust virtual-machine whitespace-interpreter whitespace-language wasm webassembly esolang esoteric-language whitespace

spacey's Introduction

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

spacey's People

Contributors

d3psi avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

spacey's Issues

fix input instructions for wasm

    TODO: re-export error types, finish `wasm-bindgen` bindings, fix IO instructions and maybe update some docs

UPDATE: mostly done, only need to implement a callback to get input in wasm

Originally posted by @D3PSI in #10 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.