News for hackers. Stuff that matters.
Re:We found a division by zero bug in FFmpeg with a vibecode... by dmix on Thursday August 27, 2026 @02:18PM (#49469019)
Finding the bugs with LLMs is easy. Reviewing the output, cleaning it up, and making sure it doesn't break something else is the hard part.
Re:We found a division by zero bug in FFmpeg with a vibecode... by nonethewiser on Thursday August 27, 2026 @03:49PM (#49470245)
No one can keep up with the volume of code AI produces.

We wont stop using AI.

We will use AI to check AI.

Of course this is crazy, but it will also unlock pretty insane scaling and productivity and ultimately we will manage it on either end via requirements and tests.

Re:We found a division by zero bug in FFmpeg with a vibecode... by harambae on Thursday August 27, 2026 @04:03PM (#49470441)
It's mostly (not entirely, but mostly) finding security issues in old human-written code. It'll eventually start running out of those.

From that standpoint, it's not a crazy setup security-wise. Maybe still crazy for development.

Re:We found a division by zero bug in FFmpeg with a vibecode... by stefan_ on Thursday August 27, 2026 @04:20PM (#49470654)
You can point AI at any AI produced code and ask it to review it, get back 10 bullet points and a few pages of prose. And the fun part is, you can do that over and over and over again!
Re:We found a division by zero bug in FFmpeg with a vibecode... by bilalq on Thursday August 27, 2026 @04:55PM (#49471133)
This happens all the time. Yesterday, I ran into an especially egregious case.

I had Fable add a new subcommand to our internal CLI tool. I reviewed and tested it locally and had to suggest several fixes that I feel like I wouldn't have had to tell a human senior engineer to do. When it finally submitted the PR, I had it on a loop waiting a few minutes for comments on the PR, then assessing/addressing/replying-to/resolving them, and then repeating again until all AI reviewers were okay with it. It ended up going through dozens of revisions and ended up with 160 comments left on the PR.

Re:We found a division by zero bug in FFmpeg with a vibecode... by krona on Thursday August 27, 2026 @03:54PM (#49470325)
You're suggesting that LLMs get better at fixing bugs/vulnerabilities, but at the same time stop getting better at finding them? What if this difference is inherent and essential?
Re:We found a division by zero bug in FFmpeg with a vibecode... by TacticalCoder on Thursday August 27, 2026 @04:21PM (#49470659)
> You're suggesting that LLMs get better at fixing bugs/vulnerabilities, but at the same time stop getting better at finding them?

Are you implying that all code writing by LLMs atm is bug-free?

Re:We found a division by zero bug in FFmpeg with a vibecode... by krona on Thursday August 27, 2026 @05:26PM (#49471494)
Absolutely not. By most accounts they're terrible at fixing anything other than trivial bugs in complex codebases e.g. Linux kernel, but they're much better at finding them.
Re:We found a division by zero bug in FFmpeg with a vibecode... by a2ff6eeb0 on Thursday August 27, 2026 @10:43PM (#49473738)
So you put it in a loop and tell it to find the bugs in the code it wrote. What's the issue?
Re:We found a division by zero bug in FFmpeg with a vibecode... by krona on Friday August 28, 2026 @02:34AM (#49475084)
This is a self confession if I ever saw one.
Re:We found a division by zero bug in FFmpeg with a vibecode... by a2ff6eeb0 on Friday August 28, 2026 @08:50AM (#49477789)
I absolutely do this. It works great.
Re:We found a division by zero bug in FFmpeg with a vibecode... by Planktonne on Friday August 28, 2026 @05:07AM (#49476183)
What value are you providing in this scenario?
Re:We found a division by zero bug in FFmpeg with a vibecode... by a2ff6eeb0 on Friday August 28, 2026 @08:51AM (#49477790)
Manual testing, and making sure that the AI didn't create so many bugs.

But, to the underlying question, obviously as we automate more and more of our work, of course we provide less and less value. We're heading towards a future where selling thought for money isn't going to work so well.

Re:We found a division by zero bug in FFmpeg with a vibecode... by CPLX on Thursday August 27, 2026 @04:50PM (#49471071)
In fairness at root this has been going on for awhile. No one can keep up with the volume of machine code that modern more abstracted codebases produce.

We didn't stop using syntactic programming languages we used code to check code.

Not sure it's really crazy at all. It's been an abstraction for programmers probably since we stopped soldering transistors to each other.

Re:We found a division by zero bug in FFmpeg with a vibecode... by ldng on Thursday August 27, 2026 @08:31PM (#49473001)
There is a MAJOR difference between predictable generated machine code and Russian Roulette code generator.
Re:We found a division by zero bug in FFmpeg with a vibecode... by CPLX on Thursday August 27, 2026 @08:32PM (#49473005)
Of course there is.

But if you don’t actually read it…

Re:We found a division by zero bug in FFmpeg with a vibecode... by adamddev1 on Thursday August 27, 2026 @05:09PM (#49471304)
> it will also unlock pretty insane scaling and productivity

Insane scaling of bloat, bugs, and technical debt I'd say.

> We will manage it on either end via requirements and tests

It is so crazy that this is being touted as a sane strategy. When I was a much worse programmer, I tried to write a big complicated string manipulation function to take two types of scripts in a language and add diacritics. I had the requirements very clear. I had the tests very clearly with all the edge cases. But I didn't have a good and clear picture of how to attack the problem which was quite novel for me. As I got closer to passing all the tests it got exponentially more unruly and confusing. And nearing the end I was frantically changing little bits here and there wincing and praying and hoping the tests would pass. "Please work! Come on!" Then when I got close enough, I could never ever think about touching that mess again.

I was a below average programmer then throwing myself at some novel problem I didn't understand. Throwing LLMs that produce below average code at novel problems and relying on tests and requirements is not where we want to go to make real progress.

(Years later after much learning and coding myself I was able to redo the function in a totally different way. This time I actually understood how to attack the strange problem and made something clean, clear, and robust that just worked. The tests then become a secondary guardrail, not the main force of correction.)

We are seeing such a massive regression from what we've learned over the years of CS.

Re:We found a division by zero bug in FFmpeg with a vibecode... by nextaccountic on Thursday August 27, 2026 @07:26PM (#49472564)
I'm not so sure LLM code today is below average. There was a time that things posted to dailywtf were normal everyday stuff
Re:We found a division by zero bug in FFmpeg with a vibecode... by krupan on Thursday August 27, 2026 @08:35PM (#49473036)
Sorry, no, they wouldn't have been WTF's if they were normal
Re:We found a division by zero bug in FFmpeg with a vibecode... by zweifuss on Friday August 28, 2026 @07:59AM (#49477272)
Some WTFs are to be expected: https://www.osnews.com/story/19266/wtfsm/
Re:We found a division by zero bug in FFmpeg with a vibecode... by bonoboTP on Thursday August 27, 2026 @07:06PM (#49472434)
You shared a story of a novice incompetent human programmer and this should tell us that AI is bad at coding.
Re:We found a division by zero bug in FFmpeg with a vibecode... by shiandow on Thursday August 27, 2026 @05:21PM (#49471430)
I think all code is technical debt in a way. Good code is a necessary evil, bad code is more evil than necessary.

Generating code automatically when you're not even quite sure what it is or even should be doing is insanity.

Re:We found a division by zero bug in FFmpeg with a vibecode... by nonethewiser on Thursday August 27, 2026 @09:25PM (#49473321)
>Insane scaling of bloat, bugs, and technical debt I'd say.

You just described every legacy codebase. Many of which are widely used and do a lot of sales. You dont need a clean codebase to have a valuable product.

>It is so crazy that this is being touted as a sane strategy.

Re-read what I said. I literally called it crazy.

It is the same dynamic that gave us customer service from some call center in India. Why would companies do this? Customer service got worse. Are they stupid? No, it's just worth it. The quality goes down but the business can scale more so it doesnt matter.

AI will absolutely be good enough at doing things that we'll happily accept some jankiness at times so that we can devote an extra 3000 hours per year per person to other things.

Im not even suggesting its a good thing. I just think the incentive structure dictates it. You're not going to have time to maintain a small slice of some service by hand.

Re:We found a division by zero bug in FFmpeg with a vibecode... by kayamon on Thursday August 27, 2026 @10:16PM (#49473592)
Volume..... <sigh>

It used to be considered a quality of good code that there would be less code, not more.

Some people always tryin to get the highscore on golf.

Re:We found a division by zero bug in FFmpeg with a vibecode... by adrianN on Friday August 28, 2026 @12:00AM (#49474203)
You can have both less code per problem and more code overall when you make problem solving cheap enough.
Re:We found a division by zero bug in FFmpeg with a vibecode... by hombre_fatal on Thursday August 27, 2026 @03:44PM (#49470196)
The missing part of this is that verifying the bug with LLMs is also easy, and so is adversarially reviewing the proposed fix with LLMs.

The only thing left for you to do should be directional decisions. The LLMs should pause and rope you in if the fix involves directional/invariant changes.

[dead]
Re:We found a division by zero bug in FFmpeg with a vibecode... by shevy-java on Thursday August 27, 2026 @02:46PM (#49469424)
> LLMs do find bugs, do save time

They find bugs but whether they save time is nowhere near as clear as you try to insinuate here.

Re:We found a division by zero bug in FFmpeg with a vibecode... by pixl97 on Thursday August 27, 2026 @02:47PM (#49469439)
They save time in finding bugs.
Re:We found a division by zero bug in FFmpeg with a vibecode... by lukan on Thursday August 27, 2026 @02:50PM (#49469473)
And for me they also save time in fixing bugs.
Re:We found a division by zero bug in FFmpeg with a vibecode... by owebmaster on Thursday August 27, 2026 @04:35PM (#49470866)
Unless it's finding a bug it added then it's time wasted x2
Re:We found a division by zero bug in FFmpeg with a vibecode... by black_knight on Thursday August 27, 2026 @04:37PM (#49470890)
This is where I believe strong typing (like, Haskell-strong or stronger) and functional programming in general will be a win. The confidence I have that my fixes are localised when fixing Haskell code is infinitely stronger than fixing even Java, not speak about C, code.
Re:We found a division by zero bug in FFmpeg with a vibecode... by astrange on Thursday August 27, 2026 @04:47PM (#49471029)
Haskell's type system would not easily prevent this bug. It's not good at numeric/logic issues like that. When people say "Haskell makes it impossible to write bugs" they mean "Haskell has enums" (ADTs).
Re:We found a division by zero bug in FFmpeg with a vibecode... by _jackdk_ on Thursday August 27, 2026 @05:02PM (#49471222)
Liquid Haskell might require you to prove that the divisor is nonzero, but even in standard Haskell there's common idioms for ensuring that a list is non-empty (data NonEmpty a = a :| [a]) or that text is non-empty (newtype NonEmptyText = NonEmptyText Text, with non-exported constructor, helpers like make :: Text -> NonEmptyText, or more advanced tricks like https://exploring-better-ways.bellroy.com/haskell-koan-type-... ).

The big problem preventing this approach from working for numbers is that it's just so cumbersome there. Most of this is because all the arithmetic operators are bundled into a single Num typeclass, and `fromInteger :: Num a => Integer -> a` has a type that's impossible for a "non-zero number" wrapper to satisfy.

Re:We found a division by zero bug in FFmpeg with a vibecode... by black_knight on Thursday August 27, 2026 @06:19PM (#49472043)
Definitely room for improvement on Haskell's standard library when it comes to the number-related type classes. Modern Haskell could do very well in this area with a good type-class redesign in this area. The issue I think is that this would invalidate a lot of existing code, relying upon that. But you can already replace Prelude with something else in your own code if you want to.
Re:We found a division by zero bug in FFmpeg with a vibecode... by rootnod3 on Thursday August 27, 2026 @10:34PM (#49473703)
I think Idris has a better chance there.
Re:We found a division by zero bug in FFmpeg with a vibecode... by inigyou on Thursday August 27, 2026 @05:56PM (#49471841)
OOP has those too, and they're very annoying.
Re:We found a division by zero bug in FFmpeg with a vibecode... by nh2 on Thursday August 27, 2026 @06:19PM (#49472038)
In Haskell they are a little less annoying. It is just easier to reason about (including proving) pure functions.
Re:We found a division by zero bug in FFmpeg with a vibecode... by inigyou on Thursday August 27, 2026 @06:44PM (#49472245)
I meant the constrained types by hiding the constructors. Super annoying, not automatically convertible, in Haskell you have to remember what the fake constructor is called, and write it every time you use it, but at least it's efficiently implemented with newtype, unlike the Java OOP version. Think about writing a value with several nested constrained types, like NonEmptyListOne (makeNonZeroNumber 42, 'h' `NonEmptyString` "ello world"). It's just really annoying.
Re:We found a division by zero bug in FFmpeg with a vibecode... by _jackdk_ on Thursday August 27, 2026 @08:51PM (#49473131)
The blog link I mentioned avoids this cost with literals, by providing using a required type argument to check the string length at compile time without TH. It requires a relatively recent GHC:

    make :: forall symbol -> (IsNonEmptySymbol symbol) => NonEmptyText

    type family IsNonEmptySymbol symbol :: Constraint where
      IsNonEmptySymbol "" = Unsatisfiable (Text "Expected a non-empty string")
      IsNonEmptySymbol _ = (()::Constraint) -- empty constraint is always satisfied
Re:We found a division by zero bug in FFmpeg with a vibecode... by black_knight on Thursday August 27, 2026 @04:51PM (#49471097)
I am not claiming you cant write buggy code in Haskell! But following good functional style, your bug will more likely be compartmentalised, and fixing it will not break some other part of your program.
Re:We found a division by zero bug in FFmpeg with a vibecode... by StilesCrisis on Thursday August 27, 2026 @06:58PM (#49472363)
You can write good functional code in many languages. (Even C++!)
Re:We found a division by zero bug in FFmpeg with a vibecode... by black_knight on Thursday August 27, 2026 @07:01PM (#49472397)
Sure! I have done my fair share of pretending Java and C++ support my functional style. But at the end of the day, you have better support for writing that style in a real functional programming language. And I wonder how well one can enforce a functional style in say Java or C++ upon the LLMs. Who knows, they might be great at it?
Re:We found a division by zero bug in FFmpeg with a vibecode... by tome on Friday August 28, 2026 @03:07AM (#49475320)
People don’t say "Haskell makes it impossible to write bugs"! You may have heard "if it compiles it works" which is somewhat tongue in cheek, but also true for a sufficiently loose interpretation of "works" in a way it is not true for languages with a less strong and flexible type system.
Re:We found a division by zero bug in FFmpeg with a vibecode... by theLiminator on Thursday August 27, 2026 @04:47PM (#49471023)
Imo, formal methods like more expressive/stricter type systems are key to making LLM generated code successful. Of course models will get better, but trusting the output will become much easier with a type system that proves more properties.
Re:We found a division by zero bug in FFmpeg with a vibecode... by fouronnes3 on Thursday August 27, 2026 @04:45PM (#49471011)
What's stronger than Haskell?
Re:We found a division by zero bug in FFmpeg with a vibecode... by black_knight on Thursday August 27, 2026 @04:49PM (#49471063)
Dependent types is one possible direction. Not sure when a language with dependent types will arise which will be useful for making real programs.

Agda is the most mature dependently typed programming languae (having been around since the 90s – it is basically Haskell on steroids), but has a more proof-assistant flavor than an actual programming language flavor. Opus & Fable write Agda quite well, so LLMs can understand dependent types.

Re:We found a division by zero bug in FFmpeg with a vibecode... by astrange on Thursday August 27, 2026 @04:47PM (#49471034)
Anything with ranged numeric types. Like everyone's favorite functional programming language, Ada.
Re:We found a division by zero bug in FFmpeg with a vibecode... by ghaslt on Thursday August 27, 2026 @04:58PM (#49471161)
This issue raises SIGFPE. Ada would raise Constraint_error, which is easier to catch than a signal, but still occurs at runtime.

You need range proofs to be 100% safe, and then you can as well use the regular type because invalid values will not occur.

Re:We found a division by zero bug in FFmpeg with a vibecode... by black_knight on Thursday August 27, 2026 @04:54PM (#49471119)
Or Liquid Haskell.
Re:We found a division by zero bug in FFmpeg with a vibecode... by TheGoddessInari on Thursday August 27, 2026 @04:53PM (#49471111)
Lean 4, Idris 2.
Re:We found a division by zero bug in FFmpeg with a vibecode... by theLiminator on Thursday August 27, 2026 @04:47PM (#49471026)
Perhaps coq/agda/idris/etc.
Re:We found a division by zero bug in FFmpeg with a vibecode... by UltraSane on Thursday August 27, 2026 @06:29PM (#49472124)
Even Lean 4 strong typing
Re:We found a division by zero bug in FFmpeg with a vibecode... by deepsun on Friday August 28, 2026 @02:11AM (#49474936)
You haven't mentioned the dynamic typed languages that I believe should die -- Python and Javascript. The only good use case for dynamic typing is notebooks (niche of R lang) where you're throwing out the code you just wrote after getting the result you wanted from it.
Re:We found a division by zero bug in FFmpeg with a vibecode... by sadfgknerknksdf on Thursday August 27, 2026 @08:22PM (#49472932)
If finding the bugs with LLMs is easy. Then making sure it doesn't break something else is just LLMs finding no bugs. Easy.
Re:We found a division by zero bug in FFmpeg with a vibecode... by BikiniPrince on Thursday August 27, 2026 @08:29PM (#49472991)
That hasn’t been that bad. My real issue has been the time sink involved in following along with the maintainer and jumper through their hoops. Even after I demonstrate a flaw and a potential fix. My schedule is just so busy I need to pencil in time to deal with them.