News for hackers. Stuff that matters.
Re:Rust framework actix and actix-web are dead by logicchains on Monday January 20, 2020 @01:47AM (#22096835)
>What's the particular benefit Rust offers you in such a scenario? Part of the appeal of Rust is memory safety, per-compile correctness, and enforcing best practices.

It's a modern language: no #includes, faster compilation (compared to template-heavy C++), nice macros, compile-time reflection (libraries like Serde are really nice), generally nicer stdlib than C++, decent package manager. And it's one of the only languages with RAII/destructors, which to me are one of the best things about C++.

>Also, I'd argue that memory safety/rce protection/etc is crucial in games, particularly ones that are online.

This applies to the server, but not to the graphical game client running on the user's machine, as the client is usually not accepting random inbound connections, instead it just connects to the server.

Re:Rust framework actix and actix-web are dead by printango on Monday January 20, 2020 @02:27AM (#22097043)
Thanks.

>This applies to the server, but not to the graphical game client running on the user's machine, as the client is usually not accepting random inbound connections, instead it just connects to the server.

There have been a few demonstrated RCEs in game clients (especially in P2P models which many modern games use).

Re:Rust framework actix and actix-web are dead by logicchains on Monday January 20, 2020 @02:52AM (#22097163)
I didn't know that, that's scary :/
Re:Rust framework actix and actix-web are dead by xscott on Monday January 20, 2020 @02:33AM (#22097080)
> faster compilation

You should profile/benchmark that with a couple thousand lines of code... C++ can be slow to compile (although it isn't always), but so can Rust.

I will add to your list that Rust generally has nicer error messages.