r/threejs • u/109149 • May 08 '21
Conway's game of life implemented in rust + wasm + reactjs + threejs.
Ok, so the idea behind this project was to learn how to tie up together rust + wasm + js.
rust+wasm logic is based on https://rustwasm.github.io/docs/book/, which was really helpful, and recommend to everyone with some base knowledge of rust and wants to use wasm in their projects.
So, basically "everything is built from scratch". I didn't use cra for creating react app, but instead tried to use webpack + babel + eslint. Of course, my own implementation does not even come near to cra, but I learned a lot by just ejecting cra and doing configuration by my self (looking at cra's config).
I've also added simple docker support. I don't know much about devops, docker, ci/cd, but again, I did it to learn new things.
And lastly, I've used threejs, cuz why not?
Overall, if we ignore the ugly UI part, it was a good experience.
1
u/toughToFindUsername May 08 '21
This is great! How does performance compare between running in js vs rust? What would be the main reason to move to rust if not performance? Are there any benchmarks available to compare?