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.

Ten days later, Git on macOS still trusts the compromised eMudhra certificates

https://emudhra.we-have-a-problem.com/apple.html
396•galadran•3h ago•162 comments

Harvey raised 500M for legal AI, I built the same and open sourced it

https://github.com/thomasunise/casecite
49•zztopisgreat•24m ago•8 comments

Kentucky man becomes the first humanist granted religious exemption from AI

https://religionnews.com/2026/10/26/in-a-first-a-humanist-granted-a-religious-exemption-from-usin...
52•danso•39m ago•43 comments

ICE Is Running One of the Largest Anti-Left Surveillance Ops in US History

https://www.wired.com/story/ice-is-running-one-of-the-largest-anti-left-surveillance-operations-i...
363•zzzeek•1h ago•177 comments

Start Doing Graph Theory

https://vertex.degree/
249•ibobev•5d ago•48 comments

The Agent SDK

https://cursor.com/blog/agent-sdk
9•torutofu•18m ago•1 comments

Unveiling The Grid: PCBs made in America, twice as fast as Shenzhen

https://www.circuithub.com/post/unveiling-the-grid
94•seddona•2d ago•42 comments

Show HN: Nasscad – local-first 3D CAD for browser and Windows

https://www.nasscad.com/NASSCAD_V4_7_0.htm
8•Nasser-13•52m ago•7 comments

Git for the US Code

https://lexifina.com/blog/git-for-the-us-code
348•alansaber•12h ago•179 comments

Emacs Turns 50

https://www.technologyreview.com/2026/10/20/1145399/emacs-turns-50/
46•internet_points•55m ago•16 comments

Ghostty 1.4

https://ghostty.org/docs/install/release-notes/1-4-0
1162•deaux•21h ago•367 comments

Genie 4

https://deepmind.google/blog/genie-4-a-new-generation-of-world-simulation/
961•acossta•22h ago•550 comments

Two high-speed trains collide near Toledo, Spain

https://www.euronews.com/video/2026/10/28/spain-first-footage-reveals-wreckage-of-deadly-high-spe...
89•evilmonkey19•1h ago•43 comments

Amazon to buy satellite firm Globalstar in $11.57B deal

https://www.reuters.com/business/media-telecom/amazon-signs-1157-billion-deal-satellite-firm-glob...
106•noptd•2h ago•43 comments

Ink droplets in motion snag top prize in Nikon Small World contest

https://arstechnica.com/science/2026/10/meet-the-2026-winner-of-nikons-small-world-photomicrograp...
309•_Microft•2d ago•52 comments

Survival LLM: AI assistant and emergency library that runs on your own computer

https://www.brangus.io/survival-llm
426•Luc•18h ago•163 comments

MacOS Extensions Pack for the Apple Network Server v1.0

http://oldvcr.blogspot.com/2026/10/macos-extensions-pack-for-apple-network.html
87•classichasclass•3d ago•2 comments

Decompiling Fast Food Tycoon 2: Drawing the World

https://healeycodes.com/decompiling-fast-food-tycoon-2-drawing-the-world
111•healeycodes•3d ago•23 comments

Tailscale SSH: Investigation and remediation update

https://tailscale.com/ssh-investigation-update
325•figmert•18h ago•171 comments

About the compromised eMudhra intermediate CAs

https://support.apple.com/en-us/149555
68•birdculture•3h ago•37 comments

Early progress on accelerating drug development with Claude

https://www.anthropic.com/research/early-progress-drug-development
270•dataking•17h ago•261 comments

Valve Responds to Developers Fearing AI Slop and Clones

https://www.invenglobal.com/articles/27761/valve-responds-to-developers-fearing-ai-slop-and-clones
12•HelloUsername•53m ago•0 comments

Python's experimental JIT to be removed

https://lwn.net/SubscriberLink/1102102/0c00e4d550f25f8c/
547•f311a•1d ago•298 comments

New 14‑inch MacBook Pro with M6

https://www.apple.com/in/newsroom/2026/10/apple-introduces-the-new-14-inch-macbook-pro-with-m6/
390•beex•22h ago•538 comments

Raspberry Pi Zero 3W and Pi 4 Model A spotted in device trees

https://bret.dk/raspberry-pi-zero-3-w-pi-4-model-a/
195•sthlmb•17h ago•122 comments

Code-execution flaw in UEFI firmware threatens most servers on planet Earth

https://arstechnica.com/security/2026/10/code-execution-flaw-in-uefi-firmware-threatens-most-serv...
205•DamnInteresting•17h ago•135 comments

SS United States to be sunk as largest artificial reef

https://divemagazine.com/scuba-diving-news/ss-united-states-to-be-sunk-as-worlds-largest-artifici...
181•geox•2d ago•147 comments

New iMac with M6

https://www.apple.com/imac/
354•notfried•1d ago•448 comments

Jokes for the ZX81

https://spelk.press/gb/products/81-jokes-for-the-zx81
112•robin_reala•2d ago•17 comments

Classification of Finite Simple Groups Formalized in Lean

https://cfsg.axiommath.ai/
230•pfdietz•21h ago•70 comments