Re:When Zig Outshines Rust – Memory Efficient Enum Arrays
by agentultra on Monday September 18, 2023 @10:39AM
(#37556732)
GC often gets more flak than is deserved.
Often such flak ignores the differences between throughput and latency.
For long, lived processes you’ll end up writing some kind of garbage collection system.
Re:When Zig Outshines Rust – Memory Efficient Enum Arrays
by ghosty141 on Monday September 18, 2023 @10:42AM
(#37556790)
Personally I think C# is a great language to get stuff done. The big problem it has is the portability (especially when it comes to using it with a GUI).
Re:When Zig Outshines Rust – Memory Efficient Enum Arrays
by guipsp on Monday September 18, 2023 @11:11AM
(#37557244)
Fwiw, ryujinx uses a jit on the hot path, and most (but not all!) bizhawk cores are not actually c#.
Re:When Zig Outshines Rust – Memory Efficient Enum Arrays
by hu3 on Monday September 18, 2023 @11:50AM
(#37557872)
Ryujinx uses Microsoft's JIT .NET technology [1] which is best available for C# codebases. Nothing new here since it needs to translate Switch's ARM instructions to x86 machine code somehow.
[1] https://devblogs.microsoft.com/dotnet/the-ryujit-transition-...
Re:When Zig Outshines Rust – Memory Efficient Enum Arrays
by WhereIsTheTruth on Monday September 18, 2023 @12:00PM
(#37558021)
ryujinx doesn't use the GC for their sub-systems, they use a mix of manual memory allocations throught their allocators or RC
For such project to succeed, you have to be able to optimize your memory allocation strategy
If you just rely on the GC, you'll have bad surprises (why does my game stutter during gameplay?!), they already have multiple due to their double dip on the JIT, nothing prevents the JIT compiler to compile during your gameplay, causing massive stutters, just like how shaders compilation is an issue at runtime
1) https://github.com/Ryujinx/Ryujinx
2) https://github.com/TASEmulators/BizHawk