4 ms·
It's a game not a framework unless I'm completely misreading their website. The advantage vs some C# library is essentially the advantages of Rust over C#: pre
by vlang1dot0 6y ago
It's a game not a framework unless I'm completely misreading their website.
The advantage vs some C# library is essentially the advantages of Rust over C#: precise control over memory layout and usage, no GC, higher performance, an ecosystem that was designed to be x-plat from the beginning instead of bolting that on after the fact.
- pjmlp 6y agoI 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.
- GordonS 6y agoI'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).
- pjmlp 6y agoWell, 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.