Y
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
capitol_
657 days ago
Lets hope that zig becomes a memory-safe language before 1.0 then.
link
mrklol
657 days ago
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
link
flohofwoe
657 days ago
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.
link
mrklol
657 days ago
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.
link
rowanG077
657 days ago
Is there even a plan to make zig memory safe?
link
bobajeff
657 days ago
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.
link