News for hackers. Stuff that matters.
Re:The Next Mainstream Programming Language: A Game Develope... by littlestymaar on Friday August 26, 2022 @10:38AM (#32608116)
Are there game studios out there still using C? From what I've heard the majority is using C++, so switching Rust just makes your life easier without changing too much (C++ devs already uses templates, smart pointers, RAII, etc. which Rust has too, but with a better design (a stronger type system, and also hindsight from 30 years of C++)).

From what I've seen on HN, Zig seams to appeal people who like the “simplicity” of C and find Rust too complex, but I don't think anyone coming from C++ could find Rust “too complex” (a bit different, with a learning curve indeed, but not “too complex”).

Re:The Next Mainstream Programming Language: A Game Develope... by z3phyr on Friday August 26, 2022 @12:50PM (#32609870)
> C++ devs already uses templates, smart pointers, RAII, etc.

These are frowned upon in the game industry circles. Most of the game code is C style C++ with occasional function overloading and classes.

Re:The Next Mainstream Programming Language: A Game Develope... by ska on Friday August 26, 2022 @05:38PM (#32613044)
I don't know much at all about game development circles, but have a fair appreciation of others areas using c or c++ for combinations of high performance, low level, bare metal, etc. I've found some shops that very specifically use c, but other that use "c++" but that means "pretty c-like, with a few c++ features but don't you dare do x,y,z". Some of these variants are pretty simple, but it's enforced by code/design review (and sometimes tooling) not the language.