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.

We don't need more apps. We need better open source

https://jordankrueger.com/blog/better-open-source-not-more-apps/
144•pandemicsoul•1h ago•65 comments

Loopholes Are for Assholes

https://actsofvolition.com/2026/11/loopholes-are-for-assholes/
63•speckx•1h ago•26 comments

New Evidence Shows School Phone Bans Are Gradually Improving Test Scores

https://www.nytimes.com/2026/11/17/upshot/school-phone-bans-study-scores.html
592•donohoe•4h ago•303 comments

Show HN: Alloy CSS, dialogs, menus and tabs that work with JavaScript off

https://alloyhtml.com/example.html
23•prafandy•45m ago•3 comments

First Photos of the Poles of a Rod-Shaped Bacterium

https://nautil.us/check-out-the-first-photos-of-the-poles-of-a-rod-shaped-bacterium-1286664
39•dustfinger•1d ago•9 comments

Carnegie Mellon is putting computer science courses on YouTube for free

https://www.cs.cmu.edu/learn/
1987•pcompeau•19h ago•268 comments

Baidu, Xiaomi CEOs warn of growing gap between AI hype and returns

https://www.scmp.com/tech/big-tech/article/3374774/baidu-xiaomi-ceos-warn-growing-gap-between-ai-...
102•larrysalibra•1h ago•93 comments

VisualBasic.World: A gallery of Planet Source Code programs from 1997 to 2012

https://visualbasic.world/
151•broast•1d ago•56 comments

Rows vs. Columns: How different are they, really?

https://spiraldb.com/blog/rows-vs-columns
84•eatonphil•4d ago•33 comments

In 27,280 coding agent runs, 64% of inference spend went to runs that failed

https://runta.com/blog/introducing-frontierharness-eval-v1-1/
8•Edward40•58m ago•2 comments

Optimizely compromised, served malware on Zoom, GitLab

https://blog.report-uri.com/worlds-largest-brands-infected-with-malware-via-optimizely/
522•kristjansson•16h ago•207 comments

Turbo Pascal Compiler Written in Turbo Pascal

https://turbo51.com/compiler-design/tpc16-turbo-pascal-compiler-written-in-turbo-pascal
59•andsoitis•1d ago•25 comments

BugMeNot has closed

https://www.bugmenot.com/
656•lode•18h ago•295 comments

Too Many Stadiums with Roofs

https://sharptext.net/2026/too-many-stadiums-with-roofs/
27•colinprince•3d ago•17 comments

Nimony: A New Compiler for Nim

https://nimony.org/
135•Fervicus•1d ago•65 comments

Show HN: VennDB: append-only in-memory Rust DB for rows queried using bit flags

https://github.com/plabayo/venndb
17•gdcbe•1d ago•1 comments

A US Federal Women's Prison Became a "Rape Club"

https://www.propublica.org/article/federal-womens-prison-sexual-abuse-reform-dublin-bop
43•paimapi•49m ago•4 comments

Pentagon fails 9th financial audit in a row

https://thehill.com/policy/defense/6224597-pentagon-fails-ninth-audit/
41•zootedjordan•49m ago•21 comments

A.I. Just Blew Up a Key Tenet of Computer Science

https://www.nytimes.com/2026/11/06/science/ai-exponential-time-hypothesis.html
11•doener•18m ago•4 comments

If an App Asks for Full Disk Access or System and App Protection Override

https://support.apple.com/en-us/149699
191•jshier•13h ago•101 comments

How the Claude Code team thinks about verification

https://claude.dev/blog/how-the-claude-code-team-thinks-about-verification/
119•craigmart•5h ago•123 comments

Why 3dfx 1 cards had such a washed out color output?

https://twitter.com/id_aa_carmack/status/2122478083319992513
231•mfiguiere•15h ago•81 comments

Chemistry is Actually Geometry

https://chillphysicsenjoyer.substack.com/p/chemistry-is-actually-geometry
291•sebg•19h ago•125 comments

Comcast's "fiber-powered Wi-Fi" is cable, AT&T says in false advertising case

https://arstechnica.com/tech-policy/2026/11/comcast-falsely-advertises-cable-internet-as-fiber-po...
207•jaredwiener•19h ago•176 comments

Frame – 31.5" color ePaper display

https://trmnl.com/blog/introducing-frame
491•geerlingguy•23h ago•348 comments

Jiff 1.0: A datetime library for Rust

https://burntsushi.net/jiff/
418•burntsushi•22h ago•91 comments

Microsoft blames monster email outage on software defect introduced in July fix

https://www.theregister.com/saas/2026/11/16/microsoft-blames-monster-email-outage-on-software-def...
402•Bender•1d ago•302 comments

What is w2rt6byl5nf1opmc-a.com?

https://jack.cab/blog/siterate
388•dverlaeckt80•1d ago•155 comments

Grazing sheep in fields with solar arrays

https://news.cornell.edu/stories/2026/10/sheep-grazing-solar-fields-offers-farmers-economic-ecolo...
310•PaulHoule•22h ago•312 comments

Japan's Hometown Tax (2018)

https://www.kalzumeus.com/2018/10/19/japanese-hometown-tax/
104•waximabbax•1d ago•60 comments