Advent of code 2021 solver
My Rust solutions, compiled to WASM.
A function that solves a day given a string can be called and a Promise with the results is returned.
Or the Promise rejects with an error if parsing failed (this happens when you try to solve a day with an incompatible input).
This is done in a webworker to keep the computation off the main thread.
Else, for some days the browser would lock up while the WASM chugged away.
Now the main thread stays nice and responsive, allowing page navigation/link clicking/...
This PR also moves away from yarn, back to npm.
That's why the lines changed count is HUGE
Advent of code 2021 solver My Rust solutions, compiled to WASM. A function that solves a day given a string can be called and a Promise with the results is returned. Or the Promise rejects with an error if parsing failed (this happens when you try to solve a day with an incompatible input).
This is done in a webworker to keep the computation off the main thread. Else, for some days the browser would lock up while the WASM chugged away. Now the main thread stays nice and responsive, allowing page navigation/link clicking/...
This PR also moves away from yarn, back to npm. That's why the lines changed count is HUGE