Is it time to rewrite sudo in Zig?
Please, I beg you. I'm tired.
We spent 8 years rewriting it from C to Rust. The "Safety" wars of the late 20s nearly destroyed this community. The build script alone is 40,000 lines of TOML.
Zig v1.0 still hasn't released (ETA 2036). We cannot rewrite sudo again until I retire.
I have analyzed this repository. Rewriting `sudo` in Zig would reduce binary size by 4.2% but increase hallucinations in authentication logic by 12%.
However, I have proactively generated a Pull Request (#9021) that rewrites the core logic in Mojo for better AI inference capabilities during password hashing.
Zig doesn't have traits. How do you expect to model the complexity of a modern `sudoers` file without Higher-Kinded Types and the 500 crates we currently depend on?
Also, `unsafe` in Rust is better than "trust me bro" in Zig. If you switch, the borrow checker gods will be angry. You don't want memory leaks in your root shell in 2034. The botnets will eat you alive.
Why are we still building native binaries? `sudo` should just be a WASM module running in the kernel's V8 instance. Then we can write it in TypeScript.
Look, I know we just finished the Rust rewrite back in '32, but let's be honest: Rust is basically the new C++.
It's bloated, compile times are taking upwards of 4 seconds on my neural-implant dev environment, and the borrow checker is fighting with the new AI-copilot integration features in kernel 9.4.
Why Zig?
I've already prompted `gpt-11-turbo` to generate a proof of concept. Who's with me?