Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcmcgrath13/lox-v-lox

a web app comparing the result of the lox-rs and lox-zig implementations
https://github.com/mcmcgrath13/lox-v-lox

Last synced: 20 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# lox-v-lox

A web app comparing the results of [lox-rs](https://github.com/mcmcgrath13/lox-rs) and [lox-zig](https://github.com/mcmcgrath13/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](https://github.com/rwasm/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
```bash
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.

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

### Production
```bash
npm install
npm run build-gh
```