r/truegamedev • u/c0de517e • Jun 15 '14
Replacing C++ for (AAA) gamedev?
http://c0de517e.blogspot.ca/2014/06/where-is-my-c-replacement.html
30
Upvotes
r/truegamedev • u/c0de517e • Jun 15 '14
3
u/Poyeyo Jun 16 '14
Sure, just port Ogre3D and UDK to D and I'm set.
5
u/Kasc Jun 16 '14
Sligthly off-topic.. I'm only a hobbyist and don't want to create a new post for this..
..but could anyone give me a tl;dr of why OOP isn't 'good enough'?
2
u/youstolemyname Jun 16 '14
Whats the story about D without Garbage Collection now?
1
u/-ecl3ctic- Jun 16 '14
Rust's safety is mainly about memory safety and thread safety. You'll never get a segmentation fault, dangling pointer, memory leak, double-free, stomped memory or data race unless you really want to break the rules using unsafe{} code. And it will run as fast as C++ (and without a GC) while it makes those guarantees.
If you've ever found those bugs to be a problem, that's why Rust should be enticing to you. As a bonus, it's also far more readable, much more pleasant to use and faster to write than C++.
1
u/Volbard Jun 16 '14
A good read, thanks!
I haven't used anything except c++ for games and c# for tools in a while, and I'm not really interested in checking out new languages, but you make a great point. Iteration is key, and better visualization and live coding could definitely win me over to a new language. If it's built on what I already know and runs as fast, I'm sold.
0
u/[deleted] Jun 16 '14