NickyMeuleman / nicky-blog

https://nickymeuleman.netlify.app/
14 stars 6 forks source link

feat: add aoc2021 solver #160

Closed NickyMeuleman closed 2 years ago

NickyMeuleman commented 2 years ago

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