https://github.com/ustymukhman/weird-js
"JavaScript Is Weird (EXTREME EDITION)" algorithm written in Zig.
https://github.com/ustymukhman/weird-js
javascript wasm weird zig
Last synced: 5 months ago
JSON representation
"JavaScript Is Weird (EXTREME EDITION)" algorithm written in Zig.
- Host: GitHub
- URL: https://github.com/ustymukhman/weird-js
- Owner: UstymUkhman
- License: mit
- Created: 2024-08-01T06:26:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T06:38:35.000Z (almost 2 years ago)
- Last Synced: 2025-02-26T05:35:11.807Z (over 1 year ago)
- Topics: javascript, wasm, weird, zig
- Language: Zig
- Homepage: https://ustymukhman.github.io/weird-js/dist/
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weird JS
[JavaScript Is Weird (EXTREME EDITION)](https://youtu.be/sRWE5tnaxlI) algorithm written in Zig (for learning purposes) and exposed on the web via WASM.
## Download
```bash
git clone https://github.com/UstymUkhman/weird-js.git
cd weird-js
```
## Develop
```bash
# CMD:
./build.sh
# This script optionally accepts 2 arguments,
# JS code to compile and an output file name:
./build.sh "console.log('Hi!')" out
# Run:
node ./zig-out/out.js
# Web:
bun i
bun dev
```
## Build
```bash
bun run build
bun run preview
```