logoalt Hacker News

lolakutty • today at 12:39 PM • 5 replies • view on HN

Why bother with rust when you can write it in C and ask an LLM to weed out the memory bugs?


Replies

cultofmetatron • today at 12:54 PM

> write it in C and ask an LLM to weed out the memory bugs?

because a non-determinist chain of reasoning is not the same as a fully deterministic algorithm. Its the best tool when a deterministic system is not feasable.

➕ show 1 reply
huijzer • today at 12:47 PM

If you go that way, why not write LLVM Intermediate Representation? And if you know your server CPU anyway, why not write machine code?

I personally like Rust for web applications a lot because you can catch many bugs at compile time instead of during tests or runtime.

➕ show 3 replies
benjiro29 • today at 1:00 PM

Why bother with rust when you can write it in C and ask an LLM to weed out the memory bugs?

Here is a idea, why not combine both? Have the advantage of Rust its build in checks and LLMs independent checks. Now you get both for a even more safe program.

➕ show 1 reply
Georgelemental • today at 12:41 PM

Why bother with asking an LLM to weed out the memory bugs when you can write it in Rust?

➕ show 1 reply
Ar-Curunir • today at 12:44 PM

Why bother with C when you can get an LLM to write it in Rust and not waste tokens on finding memory bugs