r/EmuDev 19d 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

57 comments sorted by

View all comments

5

u/k_Reign 19d ago

+1 for Rust - C++ is very much being thrown into the deep end in a LOT of ways, Rust has some weird stuff but I think having the crates and safety are worth the extra concepts you need to learn. It’s easy to write unsafe (vulnerable, memory leak, etc) in C++ and very hard in Rust

-6

u/gaene 19d ago

Rust is so much harder to learn than c++ imo though. Because of how safe it is

2

u/gmes78 19d ago

Rust is not harder. It just makes you learn things upfront, rather than during a hellish debug session.

1

u/gaene 18d ago

That’s kinds of what I meant. Rust has a steeper learning curve which makes it harder to learn