dcts / collatz-wasm

Collatz algorithm written in rust, compiled to WASM and used in a webproject. Chartjs used for graphics.

Home Page:https://dcts.github.io/collatz-wasm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collatz-wasm

Collatz algorithm written in rust, compiled to WASM and used in a webproject. Chartjs used for graphics. See DEMO

Bildschirmfoto vom 2021-08-14 08-00-12

prerequisites

  1. you need to have Rust installed (install instructions)
  2. to compile the rust code to WASM and link with your frontends javascript code, you need wasm-pack (install instructions)

build

# build rust binaries
cargo build

# compile to wasm
wasm-pack build --target web

About

Collatz algorithm written in rust, compiled to WASM and used in a webproject. Chartjs used for graphics.

https://dcts.github.io/collatz-wasm/


Languages

Language:JavaScript 69.7%Language:Rust 13.7%Language:HTML 11.3%Language:CSS 5.3%