3 ms·
Zig is a really interesting language for game dev. I was thinking about using Zig with raylib for my next project. The show stopper was that C ABI compatibilit
by cardanome 5y ago
Zig is a really interesting language for game dev.
I was thinking about using Zig with raylib for my next project. The show stopper was that C ABI compatibility is not yet complete: https://github.com/ziglang/zig/issues/1481 https://github.com/ziglang/zig/issues/1481
I could have probably worked around it but decided to go the C and Lua for scripting route for now which works great but I can totally see Zig as a decent C replacement.
I am not interested in Windows but I am wishing you best of luck with your project. Seems quite interesting.
- dralley 5y agoOne of the nicer things about Zig is that the unoptimized debug binaries are still pretty fast, often only 2 or 3 times slower than the optimized ones rather than 10+ times slower. Presumably because Rust and C++ have a lot of abstractions that have to be sent through the optimizer to be truly "zero-cost". That, combined with generally really fast compiles (again relative to C++ and Rust) is a nice combination for game devs.