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.

2026 Eclipse Webcams

https://jonty.github.io/2026_eclipse_webcams/
248•zoenolan•2h ago•58 comments

Obituary: AmigaDOS developer Dr. Tim King has passed away

https://amiga-news.de/en/news/AN-2026-08-00070-EN.html
24•doener•27m ago•2 comments

AI is removing the middle class of software engineering

https://blog.florianherrengt.com/ai-removing-middle-class-software-engineering.html
57•florianherrengt•1h ago•32 comments

Why Tiny JPEGs Look Different in Chrome

https://guillaumetech.github.io/posts/jpg-scaling-chrome/
42•gutechh•35m ago•0 comments

What sort of maths are LLMs good at?

https://gowers.wordpress.com/2026/08/12/what-sort-of-maths-are-llms-good-at/
162•ColinWright•4h ago•70 comments

LinkedIn CringeBot 3000

https://www.cringebot3000.com/
433•theanonymousone•8h ago•183 comments

Show HN: Woxi - Open-source Mathematica / Wolfram Language reimplementation

https://woxi.ad-si.com
152•adius•4h ago•16 comments

Automatic1111 for Apple metal, 40% speed up sd1.5

https://therad.ninja/from-8-10-seconds-to-3-7-teaching-automatic1111-to-speak-metal-on-an-m3-pro/
14•dmikey831•55m ago•1 comments

Delphi 13 Community Edition Is Now Available

https://blogs.embarcadero.com/delphi-13-community-edition-is-now-available/
75•layer8•3h ago•58 comments

High-Res Photo Shows Sand-Capped Butte Rising from Mars Plain of Polygons

https://petapixel.com/2026/08/04/amazing-high-res-photo-shows-a-butte-rising-from-mars/
92•bookofjoe•6d ago•7 comments

My Agent Setup

https://chad.cm/posts/2026-8-11-my-agent-setup
11•carimura•40m ago•6 comments

Bigos (Polish Hunter's Stew) Recipe Builder

https://chefsbinge.com/bigos-recipe-builder/
32•doublepg23•5d ago•12 comments

YC startups are abandoning .com

https://www.orangecrumbs.com/stories/yc-domains
15•oyster143•2h ago•6 comments

Shade Map

https://shademap.app
8•fredley•1h ago•2 comments

Only 2.6% of the most visited websites have fully valid HTML

https://validatehtml.com/html-error-statistics
8•theo_dcrx•52m ago•10 comments

Facebook is paying controversial creators to produce rage-bait content

https://www.abc.net.au/news/2026-08-06/ragebait-how-facebook-is-paying-controversial-creators/106...
369•robtherobber•5h ago•229 comments

The Ultimate Horse

https://worksinprogress.co/issue/the-ultimate-horse/
13•Petiver•19h ago•1 comments

The hardest working font in Manhattan (2025)

https://aresluna.org/the-hardest-working-font-in-manhattan/
303•dcminter•5d ago•46 comments

Someone is running mass vulnerability scans, spoofing AI bots like ClaudeBot

https://knownagents.com/insights
8•gavinhking•34m ago•2 comments

I built a jellyfish laboratory in my backyard [video]

https://www.youtube.com/watch?v=MILwxfQBm6Q
28•surprisetalk•1w ago•2 comments

Worms: The Future of Yesterday's Worms Today

https://worm.net/
113•doener•5d ago•40 comments

ArenaAllocators don't play nicely with ArrayLists

https://www.openmymind.net/Arena-Allocators-and-ArrayLists/
4•ibobev•5d ago•0 comments

Show HN: Meteor shower, planet alignment, eclipse kit

https://lifesprites.com/share/0ACA25
4•jmtrevarton•57m ago•4 comments

Launch HN: Discovered Materials (YC P26) – AI agents to discover new materials

https://discoveredmaterials.com/research/
40•advaith08•6h ago•12 comments

German advocacy group lodges criminal complaint over Meta AI glasses

https://www.reuters.com/legal/government/german-advocacy-group-lodges-criminal-complaint-over-met...
13•tartoran•30m ago•0 comments

U of Michigan drops first-semester grades to ‘curb mental health crisis’

https://www.wsj.com/us-news/education/university-of-michigan-grades-mental-health-1a5701d4
110•cwwc•22h ago•285 comments

Bb: The IDE that builds itself

https://getbb.app/
11•williswee•1h ago•2 comments

Show HN: KidScreen, a finite YouTube shelf chosen by parents

https://kidscreen.app
10•Tintly•2h ago•6 comments

5th Heat Dome Expands Across Europe: 40°C+ Target Western and Central Europe

https://www.severe-weather.eu/global-weather/excessive-heat-dome-heatwave-western-europe-mid-augu...
9•robtherobber•2h ago•1 comments

Electricity Pricing in the Age of AI

https://power2026.ai/
6•rzk•2h ago•1 comments