News for hackers. Stuff that matters.
Re:Bevy: A data-driven game engine and app framework built i... by throw_m239339 on Tuesday August 11, 2020 @06:08PM (#24126598)
Purely a question. So why would I use rust instead of C++ or C# to develop games? what are the potential advantages of that.
Re:Bevy: A data-driven game engine and app framework built i... by rainbow-road on Tuesday August 11, 2020 @06:26PM (#24126731)
Over C#:

* Garbage collectors often scare game developers since they can lead to hard-to-fix latency spikes.

* Rust has some cool libraries (specs, rayon, etc.) that let you safely parallelize computation.

Over C++:

* It's a memory-safe language, which instantly avoids tons of bugs.

* Library interfaces are usually higher-level in Rust than in C++, for various reasons (sum types being a big one).

* It's a much smaller language, so there aren't any dark corners that you'll randomly be forced to learn.

* It has an easy-to-use package manager, and I'm not sure where C++ is on that front.

Re:Bevy: A data-driven game engine and app framework built i... by PrototypeNM1 on Tuesday August 11, 2020 @08:37PM (#24127519)
> * It has an easy-to-use package manager, and I'm not sure where C++ is on that front.

In the inescapable hell of n+1 competing standards.

Re:Bevy: A data-driven game engine and app framework built i... by adamnemecek on Tuesday August 11, 2020 @11:46PM (#24128427)
You mean that every langauge has its own package manager?
Re:Bevy: A data-driven game engine and app framework built i... by cstrahan on Wednesday August 12, 2020 @11:58AM (#24133351)
No, rather C++ has many competing package managers, none of which have majority buy in from the C++ community.

To name a few:

https://github.com/cpp-pm/hunter

https://conan.io/

https://docs.microsoft.com/en-us/cpp/build/vcpkg?view=vs-201...

https://buckaroo.pm/

Re:Bevy: A data-driven game engine and app framework built i... by ashtonkem on Wednesday August 12, 2020 @02:47AM (#24129218)
I think they mean that C++ isn’t one thing, it varies a lot by the specific compiler and version you’re using.
Re:Bevy: A data-driven game engine and app framework built i... by ShinTakuya on Wednesday August 12, 2020 @03:57AM (#24129591)
I think they mean that people keep coming along and saying "the existing N competing standards suck, let's make a new one everyone can use" and now there's N+1 competing standards.

A reference to this xkcd https://xkcd.com/927/

Re:Bevy: A data-driven game engine and app framework built i... by ShinTakuya on Wednesday August 12, 2020 @03:58AM (#24129598)
To clarify, for C++ specifically.
Re:Bevy: A data-driven game engine and app framework built i... by implfuture on Tuesday August 11, 2020 @06:12PM (#24126631)
There are many reasons, but to name a few important to me: rust gives performance on the level of C++, but with the memory safety of a garbage-collected language. It also provides protection against data races so that you can use concurrency with less chance of hard-to-debug issues.
Re:Bevy: A data-driven game engine and app framework built i... by aspaceman on Tuesday August 11, 2020 @08:40PM (#24127530)
For some, theoretically it's easier to train new Rust developers than it is to fix the bugs of new C/C++ programmers. Folks are trying to move the cost to training and dev bringup time instead of bug-fixing time.

Rust has other more technical advantages. But if you want to know why management is choosing it, it's because getting good C/C++ developers is a painful process nowadays.

Re:Bevy: A data-driven game engine and app framework built i... by pjmlp on Wednesday August 12, 2020 @02:19AM (#24129079)
Getting good developers is painful process no matter what, usually those are the ones that don't answer headhunters, search for their own gigs via their own contact network, and don't get to change jobs just for a couple of more coins.
Re:Bevy: A data-driven game engine and app framework built i... by aspaceman on Tuesday August 18, 2020 @06:40PM (#24205196)
True. Guess I just meant some folks are willing to trade one problem for another.