←back to thread

Zig is hard but worth it

(ratfactor.com)
401 points signa11 | 1 comments | | HN request time: 0s | source
Show context
stared ◴[] No.36151295[source]
What are the use-cases in which it might be worth switching from Rust to Zig?
replies(2): >>36151409 #>>36151637 #
1. epage ◴[] No.36151637[source]
matklad, of rust-analyzer fame among many other things, wrote up their thoughts on Zig: https://matklad.github.io/2023/03/26/zig-and-rust.html

I've seen some put it as "zig is good when `unsafe` heavy code".

Personally, even when writing life-or-death software, allocation errors were too much of a pain to deal with and much prefer Rust's approach for 99% of software. The question is if another language like zig provides enough value to justify existing for that 1% of use cases (all numbers made up :) ).