Should I learn C++ or Rust?
1–10 of 13 posts
Re: Should I learn C++ or Rust?
#2I would recommend risc-v assembly, and to run it on x86_64/arm/etc with an interpreter.
Re: Should I learn C++ or Rust?
#3Plain and simple C99, even though C99 syntax is already too rich. I would recommend risc-v assembly, and to run it on x86_64/arm/etc with an interpreter.
Re: Should I learn C++ or Rust?
#4Re: Should I learn C++ or Rust?
#5Re: Should I learn C++ or Rust?
#6Re: Should I learn C++ or Rust?
#7Eventually you will appreciate both languages' pros and cons, depending how you use them in each case separately.
Re: Should I learn C++ or Rust?
#8Re: Should I learn C++ or Rust?
#9I'd vote C++. Rust is terrible for complex problems requiring experimentation (ie don't know what you don't know) and tight feed back loops. For gaming it's probably the wrong choice.
On the flip side, Rust has great error messages and boasts a robust package manager, “cargo” (more convenient than say CMake) but lacks libraries such as STB, Catch2, nlohmann::json, and DirectX Math, OpenGL, …
Although there are bindings to libraries for DirectX Math created by others, the question remains: are they genuinely production-ready? C and C++ have a long history, they are different languages, but they are arguably orthogonal. Not completely different.
I would say: do not focus on languages, more on solving problems. That means, learn fundamental subjects well (geometry, linear algebra, calculus, differential equations). If people like Karpathy and Jensen are right, then being very good at a particular programming language might not have much of an importance.
Re: Should I learn C++ or Rust?
#10If you have to work in C++, you can take that intuition with you.
But if game dev is your motivation, it makes sense to just jump to C++.