logoalt Hacker News

troauei • last Wednesday at 7:43 PM • 1 reply • view on HN

Yes, but only a portion of the languages are undefined behavior. The rest is fairly predictable.

Plus, these undefined behaviours are well-documented, even if easy to miss.

Whereas in LLMs, the whole thing is undefined behavior.


Replies

kazinator • last Wednesday at 11:07 PM

> Whereas in LLMs, the whole thing is undefined behavior.

Bingo!

When you exploit undefined behavior using a compiler, what do you do? You verify that its output, the object code, does what you intended with the undefined code. Or else you at least have to test the heck out of it.

Gee, what is all that similar to ...