r/rust_gamedev • u/myNameIsJeff2_0 • Dec 02 '18
why use rust to develop games?
why choose rust instead of c++
what are the advantages of rust
can rust be a standard in the development of games
1
u/forestmedina Dec 02 '18
im trying to decide about this, i think rust is cleaner than c++ and the tooling is way better, but the ecosystem of rust is nothing compared to c++. The best thing you can do is make a simple game in both languages and compare what gives you better results,
1
u/auto-cellular Dec 02 '18
what c++ feature do you feel you would miss ?
2
u/forestmedina Dec 03 '18
i think that if i decide to use rust , i will try to use with the rust mindset and not the c++ mindset. For example function overloading is a feature that i definitely miss at first, but there are ways to work around that, and is not that important when you take in accout all what you get with rust.
The major issue for me is the ecosystem, to give a example i think the only usable library for physics right now is nphysics, and in other areas there are no mature libraries.
16
u/nqe Dec 02 '18
Do you like Rust more than C++ as a language? If yes then choose it, else choose C++. Both give similar performance.
Many Rust fans wrote C++ previously and found Rust to be much easier at writing correct, safe, and performent programs. One big downside is that Rust is very new compared to C++ so its ecosystem is not anywhere as well developed.