Wouldn't Zig be more suitable than rust? In the Linux kernel

Joshua Rose joshuarose at gmx.com
Mon Sep 23 20:11:46 EDT 2024


> The Zig compiler is compatible with C
So is Rust.

> Zig code is cleaner than Rust,
The standard library is a bit more readable, sure, but the overall 'cleanliness'
of either language is up for debate.

> and they are both equally secure.
If by 'secure' you mean safer, I believe Rust outshines Zig in memory safety.

Again, this is just from my research; I have only ever experimented with Rust so
I may be a bit biased.

--
- Joshua.



More information about the Kernelnewbies mailing list