News for hackers. Stuff that matters.
Re:Zig's New Relationship with LLVM by gameswithgo on Monday September 28, 2020 @09:11AM (#24616245)
Zig has a lot of features that make it really nice for game development. Easy and no overhead C interop of course, good runtime performance, fast compilation. While it doesn't have as much safety as Rust it is at least a half step between C and Rust, with option types and better management of undefined behavior. Zig probably makes more sense as a gamedev language than Rust for single player/non networked games, where a memory mistake isn't leading to leaked data or server exploits.
Re:Zig's New Relationship with LLVM by dnautics on Monday September 28, 2020 @11:27AM (#24617659)
Safety is a much more complicated topic than "does my language guard against memory safety", so I wouldn't slyly dismiss zig as "only good for games".