33 comments

  • VBprogrammer 14 minutes ago

    I've recently been using AI a lot for performance optimisation during a particularly busy period at work. I would say it was almost completely useless at the high-level direction - it would point out suspicious parts of SQL queries for example but on back to back testing these almost never resulted in any performance change.

    In fact, if it wasn't for the fact that it made making the actual changes I identified much easier (move these joins into a CTE etc) it would have been a detriment. Not only did I get sidetracked by a bunch of useless suggestions but I also had to put up with others dumping their raw AI output at me as if it was somehow a meaningful contribution.

      herrkanin 2 minutes ago

      The thing that makes it work really well is to make sure it has all the tooling to verify its hypotheses. If you allow it to run the full lifecycle in loops you will be surprised how well it works.

      WhyIsItAlwaysHN 6 minutes ago

      The mistake there is to point it at code to figure out performance optimizations.

      The place to find them would be performance profiles, query plans, telemetry. The guidance for perf still applies, measure before and after change.

      The issue is that the code often does not contain the information to do a perf optimization. Eg. you can't tell your cache size, the volumes of data in your DB or the latency of your network through just the text. Should you provide this context, you can get better results.

        flohofwoe 3 minutes ago

        > The place to find them would be performance profiles, query plans, telemetry.

        Tbh, once this information is available (which is the tricky part), in 99% of cases there's really no AI needed to analyze the data, since the 'low hanging fruits' will usually stand out anyway. And once you get into the area where optimization hotspots are no longer obvious, you're already deep in the diminishing returns area and optimizations for one use case or hardware configuration may degrade performance on others. That's my experience anyway.

          dewey a few seconds ago

          > there's really no AI needed once this information is available

          Most people are not arguing that problems are too tricky for a human to solve once presented with it, but AI can look at 1000 things at the same time across a whole code base and then just come back with the results a human can review.

      sigmoid10 6 minutes ago

      Which model/agent/harness tool did you use? I've found what you describe was my exact experience some ~6-8 months ago, but since about a month or so the game has completely changed. Using 5.6 Sol with highest reasoning setting in Codex or Fable in Code, the models come up with a list of possible improvements from static analysis (ranked by complexity/benefit), write and run their own custom profilers and deliver significant performance improvements with barely any input needed from my side.

      colechristensen 6 minutes ago

      Then you're not grounding it to reality properly. LLMs get bad pretty quickly when you just tell them to pull the answer out of thin air. Pin them to reality with actual performance tests to run to test theories and the results will be much better.

      Performance optimization involves simulating real world loads and measurable results. Give them the opportunity to actually have a closed loop if you want more than trivial improvements.

  • truncate 23 minutes ago

    Not that I don't believe its possible to fix a lot of bugs, I also wonder what the actual dynamic was. Were the people in team working much more than usual as well? Given its Google, I wouldn't be surprised if there was an "internal push" to fix more bugs over next X sprints so that they can publish this blog and some manager can show impact and AI adaption to his superior.

      NitpickLawyer 5 minutes ago

      Google's entire modus operandi has been "automate everything" for decades. They've been doing this with fuzzers, with project zero and so on. Adding LLMs on top is a very obvious next step. And LLMs improving and finding more bugs also follows. Then improve the harness and the dev tools, to better use the LLMs. And then everything together end-to-end to find-triage-fix-confirm. Your LLMs are as good as the loop they run in, and the loop is as good as the verifier. Seems a reasonable enough dynamic without (or despite, depends how cynical you wanna be) the need for managers to show number goes up on some chart.

      nevi-me 13 minutes ago

      1. Our backlog of bugs gets processed quicker because instead of staring at the code for 10 minutes fiuring out what's happening, there's a tool that can reason about it quicker.

      2. Code reviews and security reviews happen quicker and produce more findings.

      I would think that (m)any team(s) using AI might also be seeing a higher rate of finding and fixing issues.

      Even the Linux Kernel (I'd say Windows and Apple too) are seeing the same phenomenon.

      brador 17 minutes ago

      More likely just getting ahead of the AI attacks before they hit. The threat risk increase caused by AI has gone off the chart.

  • dabedee 16 minutes ago

    How many of those automated fixes were reverted? How many introduced a new bug? What's the false positive rate on the finding agents? The post has counts for everything that went right and nothing for what could go wrong.

      staszewski 7 minutes ago

      You're not supposed to ask sane questions here

  • mw888 30 minutes ago

    AI critique often funnels itself into a narrow bucket: creating code blindly with AI is bad. That's easy to grant.

    Adversarial testing, checking developer assumptions, refactor suggestions, small dev tools and even some guided coding all sit on the other side of the spectrum of what you can do with coding and AI. For larger and larger codebases even simple things like tracing dependencies or behavior might be greatly aided.

    And the critiques reserved for that narrow bucket on the other end, blindly generating code, are too easily conflated with the rest.

      ikekkdcjkfke 16 minutes ago

      Yes. AI is a tool, it’s supposed to be used a certain way, anything else is a misunderstanding og what AI is. You have to aim it in the direction you want it to go, not expect it to solve all your problems magically

  • feverzsj 3 minutes ago

    Maybe fix all the decade-long old bugs first.

  • TuxPowered 17 minutes ago

    So will the Chromium bug 5569 finally get fixed?

  • cyberjunkie 31 minutes ago

    Still can't stand Chrome.

      geek_at 23 minutes ago

      won't forgive them either for making it harder to filter out ads

        onesandofgrain 17 minutes ago

        . .

          83642736392 10 minutes ago

          Why would anybody want reddit and YouTube of all pages to be funded?

          flohofwoe 12 minutes ago

          That's something those products need to figure out, not the users, one potential solution is to erect paywalls and find out how much those products are actually worth to their users ;)

          edhelas 14 minutes ago

          We don't.

          echelon 14 minutes ago

          You see, grandma is supposed to see the ads and buy the Mighty Putty. I'm supposed to get the adblock version. That's just how the world works.

  • lilerjee 18 minutes ago

    More important thing:

    Do you import new more bugs?

  • asdaqopqkq 11 minutes ago

    Did anyone check the code changes manually? What if it is just slop code?

      brainwad 2 minutes ago

      I don't know about Chromium specifically, but in general Google requires 2 humans to have looked at every change (normally one is the author, but not necessarily for bot-authored changes).

  • kotaKat 18 minutes ago

    Seems like they have enough AI they could find a way to put ManifestV2 back into the browser and fix things we actually wanted instead of putting more bullshit "AI improvements" we didn't?

      edhelas 13 minutes ago

      If only there was alternative browsers...

  • ed_mercer 20 minutes ago

    AI meaning Claude or Codex, because Gemini is a laughingstock for coding. Also Gemini was mentioned only once in the article.

      MadsRC 13 minutes ago

      I’ve heard from people inside Google that they’re prohibited from using anything but their own models. AlbertaTech on YT, ex-Google working on YT said in a video that right before she quit someone had threatened to quit if they couldn’t get access to Claude Code

      greenknight 19 minutes ago

      The Gemini (and Claude / Codex) that we have, is much different to their internal models / harnesses.....

        Oras 13 minutes ago

        Trust me bro?