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.

Switzerland proposes banning profiling-based ads to minors

https://www.admin.ch/en/newnsb/NMn5s24l8NjQ
70•wuemeli•26m ago•36 comments

Iosevka is an open-source, sans-serif and slab-serif, monospace font

https://typeof.net/Iosevka/
310•otobrglez•5h ago•111 comments

Pg_vectorsearch: An index that is faster than pgvector's IVFFlat and HNSW

https://github.com/timescale/pg_vectorsearch
56•jascha_eng•1h ago•19 comments

RIP Eric Binnion

https://ma.tt/2026/10/rip-eric/
24•speckx•48m ago•5 comments

Pulsar at ESUG 2026 (new Smalltalk IDE)

https://blog.lorenzano.eu/pulsar-at-esug-2026/
43•mpweiher•3h ago•4 comments

Amazon pushes up prices across the Internet

https://www.not-ship.com/how-amazon-pushes-up-prices-all-across-the-internet/
214•sighborg•4h ago•206 comments

Sound – Bartosz Ciechanowski (2022)

https://ciechanow.ski/sound/
175•dverlaeckt80•2d ago•22 comments

Show HN: A guided 3D Leonardo da Vinci museum, built in code

https://museumofages.org/w/vinci
33•micstradev•3h ago•13 comments

Show HN: Guitoro, a virtual guitar you strum with your keyboard

https://guitoro.com/
493•talccc•18h ago•130 comments

The Aaronson Oracle

https://aaronsonoracle.com/
18•routeroff•1h ago•18 comments

900-Page Pre-Pantone Guide to Color from 1692 (With Complete High-Res Scan)

https://www.openculture.com/2026/10/a-900-page-pre-pantone-guide-to-color-from-1692.html
205•mdp2021•2d ago•34 comments

Same Job, Two Engines: InnoDB and Iceberg Internals

https://marcpaul.io/logs/same-job-two-engines-innodb-and-iceberg-internals/
37•marcbpaul•1d ago•2 comments

The Origin Story of Kid Pix

http://red-green-blue.com/kid-pix-the-early-years
51•MBCook•1d ago•11 comments

Details Leak from Meeting Where Weiss's 'Handpicked' Editor Threatened CBS Staff

https://www.mediaite.com/media/news/details-leak-from-explosive-meeting-where-bari-weisss-handpic...
10•slowin•26m ago•1 comments

AOSP Source Releases Are So Late Developers Disassemble Libraries to Report Bugs

https://github.com/android/ndk/issues/2260
366•tharen•7h ago•172 comments

Gemini 4 Argon

https://deepmind.google/models/gemini/
1360•737max•21h ago•966 comments

Who Is Planting Backdoors in Ledger Crypto Wallets?

https://www.zetter-zeroday.com/who-is-planting-backdoors-in-ledger-crypto-wallets/
68•hacb•4h ago•69 comments

The United Kingdom generates less electricity per person than in the 1970s

https://ourworldindata.org/data-insights/electricity-generation-per-person-in-the-united-kingdom-...
358•karakoram•22h ago•581 comments

Felix Rieseberg Homepage

https://felixrieseberg.com/
238•rglover•9h ago•87 comments

Recreational Programming

https://www.cphiri.dev/presentations/recreational-programming
242•jslakro•15h ago•97 comments

Kcgi – minimal CGI and FastCGI library for C/C++

https://kristaps.bsd.lv/kcgi/
55•Bluestein•1d ago•29 comments

TV4 postpones show after AI agent erases edited material

https://swedenherald.com/article/tv4-postpones-the-challenge-until-2027-after-technical-failure-e...
46•tobr•3h ago•25 comments

AI Laser Locking for Quantum Computers: How QuEra Automates It

https://www.quera.com/blog-posts/holding-the-light-teaching-an-ai-to-lock-and-tune-our-quantum-co...
17•EvgeniyZh•3h ago•3 comments

MIT class project turns into an FDA-cleared treatment for tremors

https://news.mit.edu/2026/mit-class-project-turns-into-fda-cleared-treatment-for-tremors-1002
239•zdw•1d ago•47 comments

Ledger confirms spy chip implant behind wallet crypto thefts

https://www.bleepingcomputer.com/news/security/ledger-confirms-hardware-wallet-spy-implant-behind...
745•thm•2d ago•467 comments

Show HN: How random are you?

https://lab.specr.net/rigged-draw/
170•vunderba•20h ago•90 comments

Arena Allocators in C

https://eliasebner.com/blog/guides/arena-allocators-in-c/
65•dimonomid•2d ago•29 comments

Strafe: A new open-source, E2E Encrypted, and federated alternative to Discord

https://strafe.chat/
68•brydencalaway•10h ago•47 comments

Maybe a better way to track the release history of a Git repo

https://blog.plover.com/prog/git/history-proposal.html
55•evakhoury•1d ago•13 comments

PostEra (YC W20) Is Hiring AI Researchers for Drug Discovery

https://jobs.lever.co/postera/c7d50a36-db0a-4574-bfe4-8700b74a22c0
1•morraa•16h ago