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.

Claude Code Is Steganographically Marking Requests

https://thereallo.dev/blog/claude-code-prompt-steganography
375•kirushik•1h ago•128 comments

The labor share of income in the US is at its lowest post-war level

https://libertystreeteconomics.newyorkfed.org/2026/06/the-post-covid-decline-in-the-labor-share/
317•loughnane•1h ago•274 comments

Nano Banana 2 Lite

https://deepmind.google/models/gemini-image/flash-lite/
22•minimaxir•24m ago•5 comments

We moved our Bluesky data to Eurosky

https://waag.org/en/article/why-we-moved-our-bluesky-data-eurosky/
71•dotcoma•1h ago•53 comments

Memoirs of Extraordinary Popular Delusions and the Madness of Crowds (1852)

https://www.gutenberg.org/ebooks/24518
112•lstodd•4h ago•30 comments

County with 37 Data Centers Asks Schools to 'Conserve Electricity'

https://www.404media.co/henrico-virginia-datacenter-energy-cost-email/
97•01-_-•1h ago•38 comments

Looking Ahead to Postgres 19

https://www.snowflake.com/en/blog/engineering/postgresql-19-features-beta/
129•thinkingemote•2h ago•86 comments

EU commissioners shut down air conditioning for employees, leave theirs on

https://www.politico.eu/article/eu-commission-heatwave-hq-forced-shut-down-air-conditioning-europe/
98•spwa4•52m ago•58 comments

Building a custom octocopter from scratch with no prior hardware experience

https://karolina.mgdubiel.com/drone/
243•noleary•2d ago•53 comments

Open Source Low Tech

https://opensourcelowtech.org/
510•grep_it•4d ago•108 comments

Knoppix

https://www.knopper.net/knoppix/index-en.html
97•hoangvmpc•4h ago•54 comments

European digital ID wallets rely on safety services of Google and Apple

https://waag.org/en/article/european-digital-id-wallets-are-gift-google-and-apple/
594•donohoe•6h ago•249 comments

Claude Science

https://claude.com/product/claude-science
5•lebovic•5m ago•0 comments

Zluda 6 release (run unmodified CUDA applications on non-Nvidia GPUs)

https://vosen.github.io/ZLUDA/blog/zluda-update-q1q2-2026/
92•Tiberium•6h ago•9 comments

Qwen 3.6 27B is the sweet spot for local development

https://quesma.com/blog/qwen-36-is-awesome/
1084•stared•1d ago•692 comments

Crypto firms have spent $189M so far on 2026 US election, report says

https://www.reuters.com/world/crypto-firms-have-spent-189-million-so-far-2026-us-election-report-...
19•tartoran•28m ago•1 comments

Mathematics: Its Content, Methods and Meaning

https://old.maa.org/press/maa-reviews/mathematics-its-content-methods-and-meaning
27•teleforce•3d ago•3 comments

Exercise intensity influences body composition in healthy older adults (2025)

https://www.maturitas.org/article/S0378-5122(25)00571-7/fulltext
158•bookofjoe•6h ago•132 comments

.self: A new top-level domain designed to support self-hosting

https://hccf.onmy.cloud/2026/06/21/reclaiming-our-digital-selves-hccfs-vision-for-a-human-centere...
616•HumanCCF•21h ago•351 comments

Free the Icons

https://weblog.rogueamoeba.com/2026/06/26/free-the-icons/
611•zdw•3d ago•226 comments

Factorio 2.1 Experimental Release

https://factorio.com/blog/post/fff-444
38•ibobev•3d ago•15 comments

Scammers Sell Seeds for Exotic AI-Generated Flowers That Don't Exist

https://www.404media.co/scammers-sell-seeds-for-exotic-ai-generated-flowers-that-dont-exist/
40•Brajeshwar•1h ago•18 comments

I'm building a Space Cadet Pinball Machine! [video]

https://www.youtube.com/watch?v=lHQ8c8i42VE
50•skibz•3d ago•8 comments

BMW iX5 Blows Away the Competition with 460-KW Charging, 435-Mile Range

https://insideevs.com/news/800125/bmw-ix5-neue-klasse-ev-electric-suv/
21•01-_-•1h ago•39 comments

Computer-Aided Language Development in Nonspeaking Children (1968) [pdf]

https://archive.org/details/colby1968-computer-aided-language-development-in-non-speaking-children
33•dang•1d ago•1 comments

Memory Safe Context Switching

https://fil-c.org/context_switches
186•modeless•16h ago•28 comments

LongCat-2.0, a large-scale MoE model with 1.6T total and 48B Active

https://longcat.chat/blog/longcat-2.0/
235•benjiro29•16h ago•65 comments

Rocketlab acquires Iridium

https://investors.rocketlabcorp.com/news-releases/news-release-details/rocket-lab-acquire-iridium...
452•everfrustrated•1d ago•293 comments

Parse, Don't Validate – In a Language That Doesn't Want You To

https://cekrem.github.io/posts/parse-dont-validate-typescript/
112•fagnerbrack•6h ago•87 comments

Linux for the Sega MegaDrive

https://github.com/LinuxMD/linuxmd
190•HardwareLust•1d ago•48 comments