Re:Was Rust Worth It?
by Buttons840 on Thursday October 26, 2023 @08:04AM
(#38024435)
I've been spending a lot of time looking through the WebGPU API as implemented by Rust's WGPU library. WGPU has C bindings as well. If I were to write my WGPU code in Zig, what does Zig offer to help me avoid looking at the WGPU docs and WebGPU spec?
I suspect Zig libraries feel easier because they're doing easier things. I bet if you try to draw a triangle with the Vulkan API in Zig, you'll find yourself looking at the reference docs a lot.
I suspect Zig libraries feel easier because they're doing easier things. I bet if you try to draw a triangle with the Vulkan API in Zig, you'll find yourself looking at the reference docs a lot.