Hacker News new | ask | show | jobs
by rainbow-road 2141 days ago
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.

1 comments

> * 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.

You mean that every langauge has its own package manager?
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/

I think they mean that C++ isn’t one thing, it varies a lot by the specific compiler and version you’re using.
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/

To clarify, for C++ specifically.