Hacker News new | ask | show | jobs
by nagaiaida 3 days ago
this genre of comment always sits poorly with me; i've been hearing this month after month year upon year as if i haven't been watching the whole time, perfectly capable of periodically trying out the trendy hotness from 6 months back i was assured obviated each and every concern of the ignorant luddites. and yet it continues to fail in similar, pathetically trivial ways. but by then there's a new obviously better model and nothing about the old one is considered admissible. rinse and repeat.
1 comments

I mean I think you’re just incorrect: LLMs write code just fine. They write better than most engineers and most code is much higher quality. Mostly because LLMs can dedicate time to testing - engineers can’t.

There’s a reason basically every engineer at every company on Earth is using LLMs to some degree. Yes, it’s very very good for programming.

Obviously I can’t one-shot things and if you give it stupid prompts it will give you stupid output. That won’t change, ever. But that’s not a failure mode either.

You need to prompt at the right level of abstraction and carefully think about design. And if you do, it will produce higher code than you can by-hand in 1/100th the time. And, with unit tests, fuzzing tests, differential tests… the whole works.

i see no particular reason to expect that i can trust that pile of code and unit/fuzzing/differential tests when i can go use a 750B+ parameter model i heard vociferous praise for earlier this year whose marketing materials brag about agentic capability, 1M+ token context, and unrivaled coding proficiency only to immediately have it fall on its face attempting basic pronoun-antecedent resolution that relies on trivial information a hairs-breadth back in the context window. we apparently all decided natural language is all you need but squint as i may i can't seem to make out the perfect natural language processor everyone else must be using.

what possible reasonable basis would i have to doggedly charge forward assuming that these immediately apparent issues with the basic language-processing-facsimile aspect of things will suddenly no longer be of concern when it's instead gnarly subsystem-spanning crosscutting concerns i expect to be tracked usefully across an entire codebase? particularly when things like parameters are to arguments as pronouns are to their antecedents which makes up but one tiny inherent subproblem of "okay computer design it good".

i'm certainly open to the argument that i'm just a weirdo who is simply not engaging with these things the same way as everyone else which may reveal a different set of problems invisible to most people's usage of the same tools. on balance it would probably be somewhat better if everyone else is not simply choosing to ignore these blatantly obvious issues, but the fact remains that i do encounter them relatively consistently and so have to grapple with that disconnect (and have been trying to basically since i first took a post-gpt nlp course). unfortunately, i don't particularly expect that to be the case given how often i see the same kind of issues apparently slip past other people and make it out to somewhere i can see it, but hey i'd love to be wrong.

anyway, i doubt i'll change your mind here and i equally doubt you'll change mine. not least because i just can't sustain enough intellectual respect for your side of the argument to take it particularly seriously given my own experiences. now, do i love the implications of that if you're right and your side nevertheless represents the unquestionable vast majority? obviously not, but here we are.

(also i believe you are missing a word somewhere in the semantic vicinity of "quality" in the middle sentence of that last paragraph unless the goal is indeed for language models to help my code experience mind-altering states on my behalf in the grand tradition of automating away the fun parts)

You use big words and speak eloquently - I genuinely wonder if that affects your experience with agents. I’ve found I get the best results using simple and clear instructions
i'm sure i could think more about this first and have a more interesting response here but even if that's all it is... Not Good? 'cause guess who selects the motivating idioms and writes the comments/docs for my projects
You're missing the point - it doesn't matter how stupid language models are or how simple their mistakes are. For one, it's clear that LLMs failure modes do not match human failure modes. There's many human failures that LLMs just... do not produce. For example, grammar and spelling mistakes. But then there's many more that they do produce, which humans do not.

But the big picture is that software is about outcomes. If you write tests and assert the behavior, then you know it's correct. I'll go one further - you need not even read the code. It doesn't matter what it is, it could be anything.

You just know that the algorithm has a set of expected outcomes, and it meets those. Okay, so it works. It doesn't matter if LLMs make mistakes over and over again, because they can be steered by tests and specifications.

This might sound worse than human generated code, but it's not. Because most human generated code is just... vibes. It looks nice, it looks like it acts correct. But did we fuzz it? What are we testing? Integration tests, regression tests? What about competing implementations and differential testing? Did we profile the code? Or, did we just fuck around in the debugger for a bit and proclaim "yeah this looks good"?

That's the difference. LLMs are fast, which means they can produce junk code very fast. But it's not a 1-1 recreation of how human programming works and we shouldn't treat it as such. LLMs can verify their work, and we can verify it, because they can produce so much code. This is where the quality comes from. Quality is not, in my mind, a measure of the code itself, it's a measure of it's outcomes. Is it robust? Does it handle all the edge cases? Does it fail when it needs to? Is it performant? We can assert those answers for real now, with code. Not with vibes.

lol so now i'm writing the tests? one comment up we were 100×ing the unit/fuzzing/differential tests since we're not constrained by the human-understanding element. i'm not really any happier vetting a big pile of churned out tests than i am doing it with the actual code

also i guess we can add "generates typos or ungrammatical sentences" to the big list of glaringly obvious mistakes i seem to somehow be more capable of noticing if you've legitimately never seen that even with frontier models.

Generally frontier models don't produce typos or grammatical mistakes. Not like humans. They never accidentally type an s instead of an a.

It's not that the human understanding element is unconstrained, it's that the typing speed is unconstrained. You still need to understand, but not write, the tests. That goes before LLMs, too.

If you have code that's untested, I just assume the code is buggy and does not work. Most code in the industry is barely tested, so most code is buggy and does not work. When the code does have to work, it's strictly specified and tested. We do this when software matters: in aviation, healthcare, and other domains. Most software doesn't matter much, so it's fine that it's buggy.

But now, we can spend the time to do that with all code, and the software will be higher quality. We're already seeing this phenomena with vulnerabilities. There's a lot of big, popular, software projects that we just... assumed were not buggy. Because they were written by good engineers.

But turns out no, that's not true. They are buggy, they have vulnerabilities. Nobody bothered to look and assess close enough. LLMs can assess very quickly, so now we have a problem. Most of these vulnerabilities could have been found with fuzzing, but people didn't do that.

I think most engineers will have to have a coming to jesus moment. I have found many bugs in critical pieces of software at work. Many that have existed for years, some decades. Nobody has noticed. The code was almost always barely tested. It could've have been caught trivially by automated tests, but nobody wrote those tests. Now, we can.

It's gotten to the point where I basically never use existing libraries or functions if they're untested. I just assume they are buggy, and I'm almost always right. It's faster, easier, and more reliable to just regenerate similar code with tests. I would fix the bugs, but I can't. Who knows who relies on said bugs? So, I just rewrite the code instead.

well, yeah. i'm not arguing against more fuzzing, formal verification, and upfront system design to avoid the rampant issues we have writing software that's any good. way more of that would be Good, Actually. it's just professionally embarrassing that being given the social license to check out on actually caring about doing things correctly along the way is what it apparently took to get anyone to take that seriously.

> But now, we can spend the time to do that with all code, and the software will be higher quality.

this was always on the table and plenty of us were saying to do just that. perhaps the big piles of money could have gone toward some of that instead.

> There's a lot of big, popular, software projects that we just... assumed were not buggy. Because they were written by good engineers.

well that's also embarrassing. we have a big problem in that we're usually building on unstable foundations.

> If you have code that's untested, I just assume the code is buggy and does not work.

yeah, except now i just can't even take the presence of tests as a particularly strong signal that anything works because it became dead simple to crank out the appearance of having robust testing. in the large we are moving the wrong direction.

as for frontier models generally not producing typos, sure. i agree. i was responding to a sassy little ellipsis that implied the probability was 0.