Skip to content

a web app comparing the result of the lox-rs and lox-zig implementations

Notifications You must be signed in to change notification settings

mcmcgrath13/lox-v-lox

Repository files navigation

lox-v-lox

A web app comparing the results of lox-rs and lox-zig interpreters for the same program. Both lox's are compiled to wasm, so this is a serverless app.

Prereqs

  • Node 16
  • rsw-rs - 🦞 wasm-pack based build tool

Quick Start

RSW is looking for the lox implementations in sibling directories to the root directory of this project.

Development

npm install
npm run watch

# in a different tab
npm run dev

Note: The web workers do not work in development mode, so to test that functionality, build and run the app locally.

npm run build
python3 -m http.server -d dist

Production

npm install
npm run build-gh