Even when they're not AI slop, these kinds of "paranoid sanity checks" are the software equivalent of security-theater.
LLMs are mortally terrified of exceptions
11–20 of 157 posts
Re: LLMs are mortally terrified of exceptions
#12If you are dividing two numbers with no prior knowledge of these numbers or any reasonable assumptions you can make and this code is used where you can not rely on the caller to catch an exception and the code is critical for the product, then this is necessary. If you are actually doing safety critical software, e.g. aerospace, medicine or automotive, then this is a good precaution, although you will not be writing…
I have to constantly remind Claude that we want to fail fast.
Re: LLMs are mortally terrified of exceptions
#13Re: LLMs are mortally terrified of exceptions
#14In go all SOTA agents are obsessed with being ludicrously defensive against concurrency bugs. Probably because in addition to what if driven development, there are a lot of blog posts warning about concurrency bugs.
Re: LLMs are mortally terrified of exceptions
#15Re: LLMs are mortally terrified of exceptions
#16Turns out computer math is actually super hard. Basic operations entail all kinds of undefined behavior and such. This code is a bit verbose but otherwise familiar.
Re: LLMs are mortally terrified of exceptions
#17Re: LLMs are mortally terrified of exceptions
#18(I used to look out for kaparthy's papers ten years ago... i tend to let out an audible sigh when i see his name today)
Re: LLMs are mortally terrified of exceptions
#19This is just AI trying to tell us how bad we designed our programming languages to be when exceptions can be thrown pretty much anywhere
Re: LLMs are mortally terrified of exceptions
#20Given that the output describes the function as being done "with extraordinary caution, because you never know what can go wrong", i would guess that the undisclosed prompt was something similar to "generate a division function in python that handles all possible edges cases. be extremely careful". Which seems to say less about LLM training and more about them doing exactly what they are told.