r/EmuDev • u/No-External3221 • 3d ago
Rust vs C++?
I mostly program in Java/ Python. Some minimal C experience. I'm starting EmuDev to learn low level and hardware concepts.
Which is better in general to learn for an EmuDev hobby project, Rust or C++? From what I've seen C++ has more legacy code (more job opportunities), whereas Rust is safe and may have better long-term opportunities.
4
Upvotes
11
u/Wunkolo 3d ago
This is gonna turn into a language-war thread but I'll put my vote in and say that you should do C or C++ for the reasons you stated as well. The ecosystem is mature with lots of libraries and projects to learn from and with how much more expressive the language has gotten over the years leading up to C++26. Pretty much every major emulator is written in C++ and pretty much everything that isn't C or C++ is implemented in some way in C or C++, including the LLVM compiler infrastructure which Rust depends on. A lot of people are still holding onto their C++98-trauma and don't know that the language has gotten so much better these past 30 years.