logoalt Hacker News

flohofwoetoday at 11:29 AM2 repliesview on HN

Why would *any* programming language matter when LLMs can just directly output binaries from a sufficiently detailed spec ;)

And specifically, why would Rust be a better choice than C or Zig when the LLMs get good enough to just write memory safe code in unsafe languages (they are already pretty good at finding memory safety bugs).

IMHO for code generation, different things start to matter (like fast build times, while 'convenient highlevel abstractions' become less important).


Replies

tasukitoday at 7:42 PM

> when the LLMs get good enough to just write memory safe code in unsafe languages

There is, and always will be, a huge difference between "because a LLM said so" and "here is a proof this is memory safe".

zozbot234today at 12:26 PM

Writing memory safe code in unsafe languages requires global reasoning, which LLMs are terrible at. The whole point of a type system or a borrow checker like Rust's is to thread the requirements for safety throughout the program syntax in a way that makes it possible to spot problems locally. That's why LLMs tend to be rather good at writing Rust.

show 2 replies