Hacker News new | ask | show | jobs
by superfist 657 days ago
In my opinion, in the case of the Linux kernel, Zig (once it reaches 1.0) would be a much better, more natural, and less painful choice than Rust.
4 comments

Lets hope that zig becomes a memory-safe language before 1.0 then.
Like stated, zig isn’t stable yet. And in general the kit isn’t on a good level yet to replace C in Linux.

And, there’s still no good and fast allocator:

https://github.com/ziglang/zig/issues/12484

Kernel code shouldn't need a 'good and fast' allocator though, since preferably it shouldn't heap-allocate in the first place, or at least not frequent enough that allocator performance matters.
You’re correct - was just something which is stopping people to try the language. And with that you implicate less users, less matured toolkit etc.
Is there even a plan to make zig memory safe?
As someone who's tried zig and who enjoys c. I highly doubt it would be any more acceptable for people dedicated to working on c than rust or c++ is.