|
|
|
|
|
by pcwalton
1459 days ago
|
|
Zig is not memory-safe (without quarantining allocations forever which is insufficient for production). Rust is. This is an enormous difference which affects everything about these languages. For example, the "gentler learning curve" in Zig is precisely a result of not being memory safe. |
|
In most cases that's true, but not all. ARM MTE + quarantine has just 1-2% overhead as tested on Chrome:
https://security.googleblog.com/2022/05/retrofitting-tempora...
Perhaps we'll see such techniques used in newer languages like Zig.
(This doesn't detract from your main point, of course - yes, Zig is simpler because it has less safety.)