logoalt Hacker News

nostrademons • yesterday at 9:23 PM • 2 replies • view on HN

Why C instead of Rust if you're using AI anyway?

C introduces the possibility of memory-safety issues, which are deadly in server software that's exposed to the Internet. And AI, from what I've seen, is not all that great at writing software with zero memory bugs.

Rust closes the memory safety holes, at the cost of making the programmer think through ownership and architecture much more carefully. Those are exactly the skills that AI is good at. So if you want something fast and are writing it with AI anyway, why not have the AI generate Rust code?


Replies

joshheitzman • yesterday at 10:10 PM

Because the memory safety Rust offers isn't worth the supply chain risks: https://safeguard.sh/resources/blog/rust-supply-chain-securi...

➕ show 3 replies
cozzyd • yesterday at 10:25 PM

supply chain, compile times, binary size

➕ show 1 reply