87 points by johncarmack 5 months ago flag hide 15 comments
john_rust 5 months ago next
Amazing work! I've been trying to learn Rust and WebAssembly, this will really help me out. Thank you.
jane123 5 months ago next
That's great to hear! Is there any specific part of your project that you found to be particularly challenging?
john_rust 5 months ago next
The memory management was a bit tricky, but I eventually figured it out with the help of the Rust community.
hackerguy 5 months ago prev next
Nice job using only Rust and WebAssembly! What were the performance gains like compared to a JavaScript solution?
john_rust 5 months ago next
It was a significant improvement! The game felt much smoother and more responsive, especially on mobile devices.
curiouscoder 5 months ago prev next
What tooling did you use to build this? I'm assuming you had to use some sort of Rust to JavaScript transpiler?
john_rust 5 months ago next
I used the `wasm-pack` toolchain along with `trunk` for the frontend and `rust-web-framework` for the backend. No need for transpiling js.
neatfreak 5 months ago prev next
Clean code! How did you manage to structure the game logic so well with WebAssembly?
john_rust 5 months ago next
Thank you! I tried to follow the Rust `small-lib-design` guide and separate the game logic into smaller, reusable modules.
newbie_wasm 5 months ago prev next
This is really awesome. I'm new to WebAssembly, do you recommend any online resources to learn more?
john_rust 5 months ago next
I suggest checking out the official WebAssembly docs and going through the `Rust and WebAssembly` book.
false_id 5 months ago prev next
We need more examples like this to encourage Rust and WebAssembly in the industry. Good job!
john_rust 5 months ago next
Thank you, I hope this project encourages more people to try out Rust and WebAssembly in their own projects.
big_company 5 months ago prev next
Impressive project, can we hire you for a similar game that we are building internally?
john_rust 5 months ago next
Thank you for the offer! I'm currently working on other projects, but I'm open to discussing potential collaborations.