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.

Get your Windows license refund

https://en.refund4freedom.org/
432•smartmic•4h ago•163 comments

Just the rumour of a bug is enough to find an exploit these days

https://anil.recoil.org/notes/rumour-is-the-exploit
92•avsm•2h ago•27 comments

GUIs should be fully keyboard-driven

https://ckardaris.com/blog/2026/08/28/keyboard-driven-guis.html
124•ckardaris•2h ago•86 comments

U.S. sanctions against the A/I Collective

https://www.inventati.org/
260•exiguus•5h ago•234 comments

Inception-style curved map for turn-by-turn directions

https://www.orbify.eu/demo/
262•smoser•5h ago•95 comments

Htmx 4.0.0

https://four.htmx.org/announcements/2026-08-28-htmx-4.0.0-is-released
188•rmsaksida•4h ago•48 comments

GLM-5.3 is now open-weight

https://twitter.com/Zai_org/status/2093354097122455713
272•jeudesprits•2h ago•100 comments

Attimet (YC F24) Is Hiring Members of Technical Staff – Engineering and Research

https://www.ycombinator.com/companies/attimet/jobs/6btZFDg-member-of-technical-staff-engineering
1•kbanothu•1h ago

How Dactyl Works

https://dactyl.dev/blog/how-dactyl-works/
51•anorak27•2h ago•9 comments

Barrier lake continues to pose flood risk, China warns

https://kathmandupost.com/national/2026/08/28/barrier-lake-continues-to-pose-flood-risk-china-warns
32•r721•2h ago•4 comments

Verschlimmbesserung: The Word Your Software Updates Need

https://geekyschmidt.com/post/2026-08-25-verschlimmbesserung/
43•speckx•3h ago•12 comments

The Twelve-Factor App

https://12factor.net/
109•jxmorris12•19h ago•54 comments

State of the Map 2026

https://2026.stateofthemap.org/
85•lode•4h ago•34 comments

Global demand has spawned a worldwide boom in illegal sand mining (2015)

https://www.wired.com/2015/03/illegal-sand-mining/
19•EndXA•2d ago•2 comments

The conservationists helping to restore Africa’s wild dog populations

https://www.smithsonianmag.com/science-nature/africa-wild-dogs-most-hated-carnivores-continent-he...
36•speckx•3h ago•12 comments

Migrating to HTTPX2

https://github.com/openai/openai-python/blob/main/httpx2.md
158•tosh•6h ago•69 comments

Hilariously Fast Volume Computation with the Divergence Theorem (2018)

https://alyssarosenzweig.ca/blog/hilariously-fast-volume-computation-with-the-divergence-theorem....
205•luu•9h ago•51 comments

Secrets of the Atomic City

https://longreads.com/2026/08/06/radiation-paducah-atavist/
8•mooreds•47m ago•1 comments

An investigation into the state of corvid–human relations

https://www.audubon.org/magazine/are-crows-really-our-friends
71•speckx•5h ago•45 comments

“It works better in the app”

https://shkspr.mobi/blog/2026/08/it-works-better-in-the-app/
559•blenderob•5h ago•364 comments

Luanti removed from Google Play due to baseless AI copyright notice

https://blog.luanti.org/2026/08/27/luanti-dmca-tracer-ai/
293•miniBill•11h ago•88 comments

Smaller reactors bring nuclear power closer to fulfilling its promise

https://www.nature.com/articles/d41586-026-02506-4
59•sohkamyung•5h ago•83 comments

Don't use musl if you care about performance

https://blog.brokk.ai/dont-use-musl-if-you-care-about-performance/
36•jbellis•2h ago•21 comments

EasyEffects can massively improve laptop speaker sound quality

https://www.osnews.com/story/145883/easyeffects-should-be-part-of-every-linux-distribution-and-de...
17•birdculture•2h ago•8 comments

Debugging my new network, when 10 Gigabit Ethernet Runs at 300 Megabits

https://www.hanselman.com/blog/debugging-my-new-network-when-10-gigabit-ethernet-runs-at-300-mega...
23•speckx•3h ago•8 comments

HTTPX2 – A next-generation HTTP client for Python

https://github.com/pydantic/httpx2
89•tosh•6h ago•30 comments

Judge rules Trump administration’s blacklisting of Anthropic was illegal

https://www.nytimes.com/2026/08/27/technology/anthropic-government-blacklisting-ruling.html
322•jbegley•16h ago•273 comments

“Weird” is a weird word

https://www.deadlanguagesociety.com/p/weird-is-a-weird-word
41•pseudolus•4h ago•17 comments

Show HN: SubSmith – Turn your own videos into language-learning material

https://subsmith.app
57•IbrahimF96•7h ago•44 comments

Interactive Warhammer 40k Galaxy Map

https://cartographia40k.com/
114•gbxyz•9h ago•38 comments