logoalt Hacker News

0xDEAFBEADtoday at 5:04 AM2 repliesview on HN

Can we fight fire with fire, and use LLMs to rewrite all the C in Rust?


Replies

saagarjhatoday at 9:33 AM

Usually rewriting something in Rust requires nontrivial choices on the part of the translator that I’m not sure are currently within the reach of LLMs.

0xbadcafebeetoday at 5:57 AM

Sure, but the LLMs will just chain 14 functions instead of 7. If all C code is rewritten in Rust tomorrow that still leaves all the other bug classes. Eliminating a bug class might have made human attacks harder, but now with LLMs the "hardness" factor is purely how much token money you have.

show 1 reply