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.

GPT-6 Astra

https://openai.com/index/gpt-6-astra/
1346•kibae•7h ago•1078 comments

.name Termination

https://neil.fraser.name/news/2026/09/03/
1385•pavel_lishin•11h ago•380 comments

Qwen 3.8 27B available on Cerebras at 1500 tokens/s

https://inference-docs.cerebras.ai/models/overview
457•altertable•7h ago•134 comments

New type of dice guarantees no tie when deciding who goes first

https://www.cbc.ca/lite/story/9.7328614
38•colinprince•2d ago•23 comments

The largest electric aircraft just flew [video]

https://www.youtube.com/watch?v=nM86DBOqgPM
208•feb•2d ago•136 comments

Artificial beaver dams saw juvenile coho salmon survival rates go from 8% to 60%

https://www.discoverwildlife.com/animal-facts/artificial-beaver-dams-california
165•speckx•9h ago•55 comments

Which tools do Claude, Codex and Cursor choose? We measured 17k runs to find out

https://armature.tech/blog/which-tools-coding-agents-install
105•screm•4h ago•34 comments

Porting my 1993 Amiga game to Godot, with an LLM reading the 68000 assembly

https://babyloniantwins.com/blog/porting-a-1993-amiga-game-to-godot/
205•rabahs•11h ago•62 comments

K2 Horizon: A connected fleet of six open models

https://ifm.ai/blog/k2/
260•karimf•10h ago•84 comments

GPS glitched across the US by as much as 33 feet

https://www.sciencealert.com/gps-glitched-across-the-us-by-as-much-as-33-feet-scientists-have-nev...
121•thread_id•1d ago•66 comments

Any Human Ever – One life, drawn at random from all who have ever lived

https://anyhumanever.com/
474•thinkingemote•11h ago•243 comments

Xanadu was waiting for agents

https://zed.dev/blog/agentic-xanadu
87•nsm•2d ago•35 comments

1Password Replied to My Disappointment

https://nicolalosito.it/2026/09/03/1password-replied-to-my-disappointment/
13•backlit4034•1h ago•6 comments

GLP-1s are being linked to fewer serious infections, including TB

https://gizmodo.com/ozempic-and-other-glp-1s-are-being-linked-to-fewer-serious-infections-includi...
60•gumby•3h ago•37 comments

Go grandmaster Shin defeats AI KataGo with a two-stone handicap

https://www.kedglobal.com/artificial-intelligence/newsView/ked202607210007
200•gmays•1d ago•56 comments

Tasklet (YC P26) Is Hiring a Customer Success Engineer

https://tasklet.ai/careers/customer-success-engineer
1•mayop100•5h ago

Ask HN: Are others seeing Google's reCAPTCHA rejecting Firefox users?

36•Animats•6h ago•12 comments

Virtual Threads for a scripting language in Java 8 without Loom

https://jactl.io/blog/2026/08/28/jactl-virtual-threads
5•jaccomo•2d ago•1 comments

A PCB business card with a batteryless LED, powered by the phone that taps it

https://www.kevin.md/the-business-card-that-lights-up.md/
41•thekevintang•2d ago•11 comments

Audacity 4.0

https://github.com/audacity/audacity/releases/tag/Audacity-4.0.0
1053•ClydeN•15h ago•234 comments

Unusual Suspects

https://neal.fun/unusual-suspects/
111•beeperboy95•1d ago•24 comments

How concerned should we be about Astra's recurrent architecture?

https://www.lesswrong.com/posts/PLisnSFir8y5AHkmP/how-concerned-should-we-be-about-astra-s-recurrent
93•yurivish•9h ago•50 comments

OpenAI's GPT-6 Astra on ARC-AGI-3

https://arcprize.org/blog/astra
166•vignesh_warar•6h ago•99 comments

The true horror of Edgar Allan Poe’s stories lies in their confessions

https://yalereview.org/article/emily-ogden-edgar-allan-poe
55•lermontov•1d ago•21 comments

Google Antigravity TOS: 3rd party usage can get Google account suspended

https://twitter.com/GergelyOrosz/status/2095453567955968398
282•tosh•15h ago•195 comments

Show HN: I made a word building game supporting anagrams and one handed use

9•busymom0•11h ago•1 comments

Ask HN: Who is using MCP in production?

14•sukit•14h ago•25 comments

The asteroid currently hitting front end web development

https://nolanlawson.com/2026/08/23/the-asteroid-currently-hitting-frontend-web-development/
78•codechicago277•6h ago•84 comments

How to get a free .arpa domain

https://hawksley.dev/blog/get-free-arpa-domain
118•ethanhawksley•3d ago•13 comments

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

333•halcdev•11h ago•527 comments