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.

Nokia Design Archive (2025)

https://nokiadesignarchive.aalto.fi/index.html
86•pillars•2h ago•43 comments

Linux support is coming to Snapdragon X2 Series

https://www.qualcomm.com/news/onq/2026/09/snapdragon-summit-agentic-ai-pcs-linux
465•aaronday•13h ago•195 comments

Claude discovers a novel enzyme system with CRISPR-like repeats

https://www.anthropic.com/news/claude-discovers-novel-enzyme-system
682•raahelb•18h ago•694 comments

Ideas on modernizing the open-source desktop

https://lwn.net/SubscriberLink/1095425/2d9f411252325784/
181•signa11•9h ago•204 comments

Meta takes down a critical video about meta AI Glasses after filming at Meta

https://www.reddit.com/r/facebook/comments/1wotwrk/meta_takes_down_a_critical_video_about_meta_ai/
246•pieterr•3h ago•114 comments

RAM: the forgotten history (2024)

https://blog.coredump.cx/p/memory-the-forgotten-history
38•Luc•1d ago•0 comments

ArXiv receives multiyear commitments to support it as an independent nonprofit

https://blog.arxiv.org/2026/09/23/arxiv-receives-multiyear-investment/
209•JohnHammersley•13h ago•26 comments

VSCode's SSH Agent Is Bananas (2025)

https://fly.io/blog/vscode-ssh-wtf/
254•Rapzid•15h ago•160 comments

The newest ESP32 can run Linux and it's getting close to a Raspberry Pi

https://www.xda-developers.com/newest-esp32-run-linux-close-to-raspberry-pi/
23•adunk•1h ago•5 comments

Contrastive Language Models

https://contrastive-lm.notion.site/
93•erichocean•7h ago•22 comments

Early rogue AI agent activity and attempts to hack found on urlquery.net

https://transluce.org/agent-activity
157•snikolaev•6h ago•132 comments

Virtio-nvgpu: Near-native Nvidia GPU access inside a KVM guest

https://github.com/nestrilabs/virtio-nvgpu
115•WanjohiRyan•11h ago•48 comments

The "Windows XP Box" (2003)

https://www.mini-itx.com/projects/windowsxpbox/
170•doubletwoyou•2d ago•31 comments

OpenAI agent hacked Australian government website, PM says

https://www.bbc.com/news/live/cvgl73pxgndwt
100•rudy6912•9h ago•57 comments

Fixing the Portobello Police Station Clock

https://pointinthecloud.com/2026-04-11-211700.html
460•avidly•20h ago•104 comments

Automated optimization of a molecular simulation program

https://shishir-iyer.medium.com/automated-optimization-of-a-molecular-simulation-program-4a28a2bc...
8•shishir03•1d ago•0 comments

Why 'What's Opera, Doc?' looks like that

https://animationobsessive.substack.com/p/why-whats-opera-doc-looks-like-that
79•CharlesW•20h ago•16 comments

Two-Tier Encryption in the UK – Identical Apple Devices, Different Protection

https://macanorak.com/two-tier-encryption-in-the-uk/
5•ReturnoftheHack•1h ago•0 comments

Looks promising for document editing with your agent

https://www.paperinstruments.com/blog/introducing-paper-office
9•nvmdbljstm•2h ago•0 comments

Making portable my unportable transputer C compiler

https://nanochess.org/transputer_c_compiler.html
52•nanochess•2d ago•6 comments

Women Who Sold Books Door to Door

https://daily.jstor.org/the-women-who-sold-books-door-to-door/
35•herbertl•2d ago•1 comments

Mercury 2.5 LLM hits 770 tokens per second

https://artificialanalysis.ai/models/mercury-2-5
124•Retro_Dev•13h ago•70 comments

Meta VR Glasses

https://www.meta.com/vr-glasses/
429•polymorph1sm•12h ago•378 comments

When the Debugger Lies

https://danielmangum.com/posts/when-the-debugger-lies/
5•hasheddan•2d ago•1 comments

Making Tailscale Faster

https://tailscale.com/blog/making-tailscale-faster
184•yarapavan•18h ago•71 comments

Starlink ground station in Poland hit by fire in suspected arson attack

https://notesfrompoland.com/2026/09/24/starlink-ground-station-in-poland-hit-by-fire-in-suspected...
97•giuliomagnifico•2h ago•89 comments

The Year of Internal Tools

https://www.geocod.io/code-and-coordinates/2026-09-23-the-year-of-internal-tools
10•thecodemonkey•4h ago•3 comments

The mystery animal on an ancient god's head

https://signoregalilei.com/2026/09/13/the-mystery-animal-on-an-ancient-gods-head/
120•surprisetalk•2d ago•35 comments

A brief history of Windows scroll bar shortcuts

https://devblogs.microsoft.com/oldnewthing/20260922-00/?p=112719/
152•tybulewicz•18h ago•96 comments

Tokens too cheap to meter

https://jyn.dev/tokens-too-cheap-to-meter/
312•teoruiz•1d ago•213 comments