frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Map of Metal

https://mapofmetal.com/
72•robin_reala•1h ago•22 comments

Everything in C is undefined behavior

https://blog.habets.se/2026/05/Everything-in-C-is-undefined-behavior.html
294•lycopodiopsida•6h ago•404 comments

Gemini 3.5 Flash

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-5/
851•spectraldrift•19h ago•585 comments

FiveThirtyEight articles on the Internet Archive

https://fivethirtyeightindex.com/
251•ChocMontePy•11h ago•63 comments

Qwen3.7-Max: The Agent Frontier

https://qwen.ai/blog?id=qwen3.7
48•kevinsimper•2h ago•14 comments

Learnings from 100K lines of Rust with AI (2025)

https://zfhuang99.github.io/rust/claude%20code/codex/contracts/spec-driven%20development/2025/12/...
79•pramodbiligiri•2h ago•73 comments

College students drown out AI-praising commencement speeches with boos

https://www.tomshardware.com/tech-industry/artificial-intelligence/college-students-drown-out-ai-...
38•iancmceachern•52m ago•13 comments

I’ve built a virtual museum with nearly every operating system you can think of

https://virtualosmuseum.org/
843•andreww591•20h ago•178 comments

Japan is gripped by mass allergies. A 1950s project is to blame

https://www.bbc.com/future/article/20260515-the-1950s-blunder-which-causes-mass-hay-fever-in-japan
177•ranit•11h ago•74 comments

Nobody understands the point of hybrid cars [video]

https://www.youtube.com/watch?v=KnUFH5GX_fI
24•CHB0403085482•2d ago•8 comments

Infomaniak transitions to a foundation model to protect user data privacy

https://news.infomaniak.com/en/infomaniak-foundation-sovereign-cloud/
109•darktoto•7h ago•30 comments

Google changes its search box

https://blog.google/products-and-platforms/products/search/search-io-2026/
596•berkeleyjunk•18h ago•804 comments

Show HN: Forge – Guardrails take an 8B model from 53% to 99% on agentic tasks

https://github.com/antoinezambelli/forge
544•zambelli•1d ago•186 comments

Remove-AI-Watermarks – CLI and library for removing AI watermarks from images

https://github.com/wiltodelta/remove-ai-watermarks
320•janalsncm•14h ago•189 comments

Apple unveils new accessibility features

https://www.apple.com/newsroom/2026/05/apple-unveils-new-accessibility-features-and-updates-with-...
691•interpol_p•1d ago•362 comments

OpenAI Adopts Google's SynthID Watermark for AI Images with Verification Tool

https://openai.com/index/advancing-content-provenance/
302•smooke•17h ago•163 comments

Mistral AI acquires Emmi AI

https://www.emmi.ai/news/mistral-ai-acquires-emmi-ai
285•doener•17h ago•84 comments

Gemini CLI will stop working from June 18, 2026

https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/
274•primaprashant•18h ago•140 comments

CopyFail: From Pod to Host

https://xint.io/blog/copy-fail-pod-to-host
33•tptacek•19h ago•5 comments

Simulated Evolution on the PICO-8

https://bumbershootsoft.wordpress.com/2026/05/16/simulated-evolution-on-the-pico-8/
24•ibobev•1d ago•1 comments

No way to parse integers in C (2022)

https://blog.habets.se/2022/10/No-way-to-parse-integers-in-C.html
11•konmok•2h ago•0 comments

RISC-V and Floating-Point

https://fprox.substack.com/p/risc-v-and-floating-point
34•hasheddan•1d ago•26 comments

The Invention of Buses

https://worksinprogress.co/issue/the-invention-of-buses/
18•surprisetalk•1d ago•5 comments

Incident Report: Railway Blocked by Google Cloud (Resolved)

https://blog.railway.com/p/incident-report-may-19-2026-gcp-account-outage
502•aarondf•12h ago•318 comments

In 1979 engineer Hugh Padgham discovered "gated reverb" – by accident

https://producelikeapro.com/blog/how-one-recording-mistake-created-a-musical-phenomenon-in-the-80s/
65•bookofjoe•2d ago•21 comments

GitHub is investigating unauthorized access to their internal repositories

https://twitter.com/github/status/2056884788179726685
516•splenditer•12h ago•278 comments

The Mercury logic programming system

https://github.com/Mercury-Language/mercury
76•Antibabelic•2d ago•16 comments

Minnesota becomes first state to ban prediction markets

https://www.npr.org/2026/05/19/nx-s1-5821265/minnesota-ban-prediction-markets
703•ortusdux•17h ago•216 comments

I’ve joined Anthropic

https://twitter.com/karpathy/status/2056753169888334312
1368•dmarcos•21h ago•573 comments

Growing Neural Cellular Automata

https://distill.pub/2020/growing-ca/
122•pulkitsh1234•2d ago•12 comments