frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Fixrleak: Fixing Java Resource Leaks with GenAI

https://www.uber.com/blog/fixrleak-fixing-java-resource-leaks-with-genai/
17•carimura•1y ago

Comments

stevoski•1y ago
> “Resource leaks, where resources like files, database connections, or streams aren’t properly released after use, are a persistent issue in Java applications”

This was true maybe back in 2005. Java has had try-with-resources for a loooong time. As I see it this has been the dominant idiom for ages, for handling resources that might leak.

okr•1y ago
People tend to forget. Stream-API is a good candidate, that people like to not consider for leakage. If you don't own your stream, if you do not definitly know, that your stream comes from a collection, then ya better close it with a try-block.
bob778•1y ago
How much effort was spent automating this to fix 112 instances across Uber’s code base? I assume code reviews would catch any new issues so this seems like overkill for a small one-off task?
hawk_•1y ago
Spotbugs or checkstyle etc... would catch these. What does AI add here?
xyst•1y ago
It gives marketing team at Uber to say "wE uSe AI hErE!!1". C-levels approve since anything AI gets a nice pump.

Engineering wise. This adds nothing. It’s an absolute waste of compute and energy to run this through LLMs

sigotirandolas•1y ago
> This analysis ensures that FixrLeak skips functions where resources are passed as parameters, returned, or stored in fields, as these resources often outlive the function’s scope.

> FixrLeak delivers precise, reliable fixes while leaving more complex cases for advanced analysis at the caller level.

In other words, this will only fix trivial leaks, which are best seen as a language design issue and can be fixed by RAII, reference counting, etc.

It won't fix the more insidious leaks like `UNBOUNDED_QUEUE.add(item)` that are more likely to pass through code review in the first place.

xyst•1y ago
Using AI when a static scanner like SonarQube easily picks up these types of resource leaks, especially in Java.

Peak waste.

What’s next?

"Get rid of your GitHub dependabot alerts and replace it with my shitty ChatGPT wrapper”

rvz•1y ago
> Using AI when a static scanner like SonarQube easily picks up these types of resource leaks, especially in Java.

Exactly.

It's very disappointing to see that Uber engineers would rather trust an LLM to that claims to spot these issues when a battle-tested scanner such as SonarQube would have caught this in the first place.

The LLM hype-train is almost just as bad as the JavaScript hype train in the 2010s where some of the worst technologies are used on everything.

rvz•1y ago
Why exactly do you need LLMs for this when efficient alternatives like SonarQube or checkstyle already do this without the expensive waste LLMs create?

This adds little to no technical advantage over existing solutions what so ever for this particular use case.

yahoozoo•1y ago
stupid af
Traubenfuchs•1y ago
So you tell me those 200-600k software engineers that can easily solve leetcode hard are so incompetent they missed using try-with-resources at such scale, they needed to introduce new AI tooling to fix it?

Hey Uber, I am from the EU, I usually can‘t even solve leetcode medium but I will write you scalable, spotless Java for a third of the salary.

Our industry and its economics are a joke.

hello_moto•1y ago
So you write bug-free scalable code 100% in any jobs you ever worked for?

I guess we don’t need QA and Dev/Staging environment

rad_gruchalski•1y ago
Can the QA team? How does the dev/staging environment help writing less buggy code?
rad_gruchalski•1y ago
But can you leetcode heh.
TYMorningCoffee•1y ago
A lot of commenters point out that there already are many established static checkers that do this. That is not what Uber attempts here.

Uber is not proposing a static checker. They even use sonar qube in their architecture. They propose using an LLM to resolve the leak detected by sonar qube.

Apple reveals new AI architecture built around Google Gemini models

https://www.macrumors.com/2026/06/08/apple-reveals-new-ai-architecture/
150•unclefuzzy•1h ago•114 comments

MiMo-v2.5-Pro-UltraSpeed: 1T model with 1000 tokens per second

https://mimo.xiaomi.com/blog/mimo-tilert-1000tps
412•gainsurier•5h ago•286 comments

Show HN: Performative-UI – a react component library of design tropes

https://vorpus.github.io/performativeUI/
621•lizhang•6h ago•126 comments

Why are cells small?

https://burrito.bio/essays/what-limits-a-cells-size
51•mailyk•1h ago•26 comments

Full Reverse Engineering of the TI-84 Plus Operating System

https://siraben.github.io/ti84p-re/
100•siraben•3h ago•15 comments

Anti-social: It's fads, not friends, which now dominate social media feeds

https://www.bbc.com/worklife/article/20260520-how-social-media-ceased-to-be-social
452•1vuio0pswjnm7•8h ago•351 comments

xAI is looking more like a datacentre REIT than a frontier lab

https://martinalderson.com/posts/xais-new-rental-business/
260•martinald•5h ago•196 comments

Surveillance Is Not Safety: A statement on the UK's latest threat to privacy [pdf]

https://signal.org/blog/pdfs/2026-06-08-uk-surveillance-is-not-safety.pdf
24•g0xA52A2A•1h ago•4 comments

EU-banned pesticides found in rice, tea and spices

https://www.foodwatch.org/en/eu-banned-pesticides-found-in-rice-tea-and-spices
113•john-titor•4h ago•38 comments

Ask HN: Why hasn't there been a real competitor to Ticketmaster yet?

46•mdni007•3h ago•32 comments

Thunderbird Littering My Home

https://thefoggiest.dev/2026/06/04/thunderbird-littering-my-home
62•speckx•3h ago•35 comments

Siri AI

https://www.apple.com/apple-intelligence/
174•0xedb•2h ago•143 comments

Stop the Apple Music app from launching

https://lowtechguys.com/musicdecoy/
494•bobbiechen•3h ago•193 comments

Apple Core AI Framework

https://developer.apple.com/documentation/coreai/
25•hmokiguess•2h ago•2 comments

Switzerland wil have a referendum to cap population at 10M

https://www.admin.ch/en/sustainability-initiative
121•napolux•1h ago•229 comments

OCaml Onboarding: Introduction to the Dune build system

https://ocamlpro.com/blog/2025_07_29_ocaml_onboarding_introduction_to_dune/
129•andrewstetsenko•4d ago•13 comments

AI is slowing down

https://www.wheresyoured.at/ai-is-slowing-down/
240•crescit_eundo•5h ago•273 comments

Launch HN: Intuned (YC S22) – Build and run reliable browser automations as code

https://intunedhq.com
90•fkilaiwi•7h ago•44 comments

Apple WWDC 2026

https://www.apple.com/apple-events/event-stream/
195•nextstep•3h ago•384 comments

120k Lines of Rust: Inside the Nosdesk Backend

https://kyle.au/blog/nosdesk-backend-rust
12•kylephillipsau•2d ago•0 comments

Using XDG-Compliant Config Files

https://wxwidgets.org/blog/2024/01/using-xdg-compliant-config-files/
16•ankitg12•4d ago•0 comments

Massachusetts bans sale of precise location data in new privacy rights bill

https://techcrunch.com/2026/06/08/massachusetts-votes-to-pass-new-privacy-rights-bill-that-bans-s...
153•01-_-•3h ago•26 comments

The Cypherpunk Library

https://www.cypherpunkbooks.com
331•yu3zhou4•12h ago•93 comments

How much of Thermo Fisher's antibody data has been manipulated?

https://reeserichardson.blog/2026/05/28/how-much-of-thermo-fishers-antibody-data-has-been-manipul...
362•mhrmsn•13h ago•78 comments

I'm building a parallel internet, and it's called The Thinnernet

https://inavoyage.blogspot.com/2026/06/im-building-parallel-internet-and-its.html
9•initramfs•1h ago•5 comments

Are you expected to run five Python type-checkers now?

https://pyrefly.org/blog/too-many-type-checkers/
114•ocamoss•8h ago•114 comments

Life is too short for a slow terminal

https://mijndertstuij.nl/posts/life-is-too-short-for-a-slow-terminal/
88•emschwartz•2d ago•67 comments

Italy's Bending Spoons, owner of AOL and Vimeo, files for Nasdaq IPO

https://www.reuters.com/legal/transactional/italys-bending-spoons-files-us-ipo-2026-06-08/
97•mmarian•5h ago•83 comments

Spanish traders set the standard for GnuCash database design

https://handson.money/blog/2026-06-06-horse-arse-and-design/
102•vitalikpie•7h ago•69 comments

Zig by Example

https://github.com/boringcollege/zig-by-example
206•dariubs•7h ago•98 comments