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.

Vectorized and performance-portable Quicksort

https://opensource.googleblog.com/2022/06/Vectorized%20and%20performance%20portable%20Quicksort.html
122•mococa•1h ago•20 comments

Training a 4B model to produce 81% faster query plans than Postgres

https://rohanbansal.com/qorl
51•polyphilz•1h ago•6 comments

Small programming tricks

https://will-keleher.com/posts/small-programming-tricks-matter/
222•signa11•4h ago•123 comments

Accurate Models of AMD Matrix Cores

https://arxiv.org/abs/2609.14845
19•matt_d•1h ago•1 comments

Fed hikes rates as inflation worries push up bond yields

https://www.reuters.com/live/live-fed-rate-hike-expected-inflation-worries-push-up-bond-yields-20...
74•wslh•1h ago•26 comments

Dream-RSI: Recursive Self-Improvement through Evolving Worlds

https://arxiv.org/abs/2609.14858
140•bananaflag•6h ago•44 comments

Mistral X Mozilla: Private, Multilingual AI Browsing

https://mistral.ai/news/mistral-x-mozilla/
459•vertigoruntime•11h ago•165 comments

Tell the speakers that you liked their talks

https://ohhelloana.blog/tell-the-speakers/
207•whisper2020•1d ago•54 comments

Show HN: An e-ink frame that hears birds and draws them as 1800s illustrations

https://github.com/arnegiacomo/fugleramme
1950•arnemunthekaas•1d ago•230 comments

The Siberian Ice Maiden and the Scythian World

https://patrickwyman.substack.com/p/the-siberian-ice-maiden-and-the-scythian
22•NaOH•1d ago•0 comments

Learning Programming in an Age of LLMs

https://blog.ploeh.dk/2026/09/16/on-learning-programming-in-an-age-of-llms/
205•moneroloop2018•10h ago•150 comments

How big are factorials?

https://eli.thegreenplace.net/2026/how-big-are-factorials/
61•ibobev•1d ago•23 comments

GitHub is having trouble counting things

https://chuckgreenman.com/2026/09/16/counting-at-github
46•chuckgreenman•2h ago•29 comments

Claude Cowork and chat are now one Claude

https://claude.com/blog/cowork-is-now-claude
141•vertigoruntime•3h ago•168 comments

The DeepMind Institute

https://institute.deepmind.com/
76•vertigoruntime•5h ago•23 comments

A coffee shop owner used AI to make a menu poster. Then came the angry DMs

https://www.businessinsider.com/coffee-shop-owner-ai-menu-backlash-2026-9
23•TMWNN•57m ago•26 comments

Hackers Got Inside a Flock Camera

https://www.wired.com/story/hackers-flock-camera-data-shows-how-system-works/
370•driverdan•6h ago•181 comments

The Google Play app review process now regularly takes longer than a week

https://gultsch.social/@daniel/117280438824908947
308•inputmice•8h ago•294 comments

ER visits for gambling disorders doubled after expanded online gambling market

https://temertymedicine.utoronto.ca/news/emergency-room-visits-gambling-disorders-nearly-doubled-...
104•geox•2h ago•87 comments

How good are frontier models at physics?

https://arxiv.org/abs/2609.13009
12•qt31415926•38m ago•2 comments

Kyber (YC W23) Is Hiring a Forward Deployed Engineer

https://www.ycombinator.com/companies/kyber/jobs/eturrAR-forward-deployed-engineer
1•asontha•7h ago

Can we stop with the uptime percentages?

https://blog.jim-nielsen.com/2026/stop-with-the-uptime-percentage/
107•surprisetalk•4h ago•84 comments

Show HN: How Stale Is Your AI? Release age and training cutoff for 20 models

https://stale.jock.pl/
57•joozio•6h ago•39 comments

Why a fast-growing German AI startup is moving its parent company from the US

https://www.euronews.com/business/2026/09/16/why-this-fast-growing-german-ai-start-up-is-moving-i...
20•jethronethro•1h ago•2 comments

Salesforce Global Outage

https://status.salesforce.com/products/all
247•mabil•9h ago•150 comments

This Code Is CRAP (2011)

https://testing.googleblog.com/2011/02/this-code-is-crap.html
68•luispa•3h ago•45 comments

Anatomy of a Texture

https://agentlien.github.io/texture/
42•Agentlien•5h ago•9 comments

Show HN: I made a flight simulator, except you're just a passenger

https://inflightsimulator.com
393•rkotcher•2d ago•197 comments

Scaling Golang CI by Replacing actions/setup-go

https://www.cloudx.ai/posts/setup-go
61•peterldowns•6h ago•17 comments

A warning about 'model welfare'

https://mustafa-suleyman.ai/a-warning-about-model-welfare
126•andsoitis•5h ago•307 comments