News for hackers. Stuff that matters.
Re:Veloren – Open-source MMORPG written in Rust by pjmlp on Friday February 05, 2021 @02:34PM (#26040275)
I bet there are more platforms supporting Unity and Unreal (which also has C# support) than Rust.

C# also has all the C++ like mechanisms to do GC free allocation.

Re:Veloren – Open-source MMORPG written in Rust by GordonS on Saturday February 06, 2021 @05:59AM (#26045748)
I've written a lot of high-performance code in C#, and in general I like it. What's really great about C# is that you can write maintainable, idiomatic, managed C# (using the GC etc), that is actually very performant for many cases. The you can dip into unsafe code (unmanaged memory, pointers etc) just for the really performance critical parts where managed code isn't fast enough (e.g. if you need to write/manage a lot of buffers).

There is more "ceremony" involved with unsafe C# code, but things like Span<T> and Memory<T> have made high-perf code so much easier in many cases.

Still, so for something that's basically all highly performance sensitive, something like Rust would be a good choice (I don't actually use Rust yet, but am planning to learn).

Re:Veloren – Open-source MMORPG written in Rust by pjmlp on Saturday February 06, 2021 @06:25AM (#26045846)
Well, the .NET team is the opinion that C# is becoming good enough to start rewriting the runtime in C#, which they started doing in .NET 5, with enough benchmarks to show where they are now and what might still be done in the .NET 6 timeframe.