https://github.com/dcts/collatz-wasm
Collatz algorithm written in rust, compiled to WASM and used in a webproject. Chartjs used for graphics.
https://github.com/dcts/collatz-wasm
collatz collatz-algorithm collatz-conjecture collatz-problem collatz-sequences rust rust-crate rust-lang wasm
Last synced: 3 months ago
JSON representation
Collatz algorithm written in rust, compiled to WASM and used in a webproject. Chartjs used for graphics.
- Host: GitHub
- URL: https://github.com/dcts/collatz-wasm
- Owner: dcts
- Created: 2021-08-14T05:54:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-14T06:28:28.000Z (almost 4 years ago)
- Last Synced: 2025-03-06T11:13:15.764Z (3 months ago)
- Topics: collatz, collatz-algorithm, collatz-conjecture, collatz-problem, collatz-sequences, rust, rust-crate, rust-lang, wasm
- Language: JavaScript
- Homepage: https://dcts.github.io/collatz-wasm/
- Size: 607 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# collatz-wasm
Collatz algorithm written in rust, compiled to WASM and used in a webproject. Chartjs used for graphics. [See DEMO](https://dcts.github.io/collatz-wasm/)
### prerequisites
1. you need to have Rust installed ([install instructions](https://www.rust-lang.org/tools/install))
2. to compile the rust code to WASM and link with your frontends javascript code, you need `wasm-pack` ([install instructions](https://rustwasm.github.io/wasm-pack/installer/))### build
```bash
# build rust binaries
cargo build# compile to wasm
wasm-pack build --target web
```