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•12mo ago

Comments

stevoski•12mo 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•12mo 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•12mo 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_•12mo ago
Spotbugs or checkstyle etc... would catch these. What does AI add here?
xyst•12mo 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•12mo 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•12mo 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•12mo 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•12mo 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•12mo ago
stupid af
Traubenfuchs•12mo 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•11mo 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•11mo ago
Can the QA team? How does the dev/staging environment help writing less buggy code?
rad_gruchalski•11mo ago
But can you leetcode heh.
TYMorningCoffee•12mo 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.

Learning Software Architecture

https://matklad.github.io/2026/05/12/software-architecture.html
280•surprisetalk•4h ago•55 comments

Rendering the Sky, Sunsets, and Planets

https://blog.maximeheckel.com/posts/on-rendering-the-sky-sunsets-and-planets/
29•ibobev•48m ago•2 comments

Screenshots of Old Desktop OSes

http://www.typewritten.org/Media/
405•adunk•9h ago•184 comments

EU to crack down on TikTok, Instagram's 'addictive design' targeting kids

https://www.cnbc.com/2026/05/12/tiktok-instagram-social-media-addictive-eu-crack-down.html
228•thm•3h ago•179 comments

Profiling.sampling – Statistical Profiler

https://docs.python.org/3.15/library/profiling.sampling.html#module-profiling.sampling
26•djoldman•2d ago•2 comments

Postmortem: TanStack NPM supply-chain compromise

https://tanstack.com/blog/npm-supply-chain-compromise-postmortem
934•varunsharma07•17h ago•392 comments

Chasing Chicago's movable bridges (2014)

https://aresluna.org/seesaws-for-giants/
31•NaOH•2d ago•2 comments

They Live (1988) inspired Adblocker

https://github.com/davmlaw/they_live_adblocker
395•tokenburner•13h ago•123 comments

US inflation jumps to 3.8% as energy costs surge from Iran war

https://www.bbc.com/news/articles/c202pgxx89lo
29•tartoran•23m ago•4 comments

Text Blaze (YC W21) Is Hiring for a No-AI Summer Internship

https://www.ycombinator.com/companies/text-blaze/jobs/P4CCN62-the-blaze-no-ai-summer-internship
1•scottfr•2h ago

If AI writes your code, why use Python?

https://medium.com/@NMitchem/if-ai-writes-your-code-why-use-python-bf8c4ba1a055
664•indigodaddy•17h ago•688 comments

UCLA discovers first stroke rehabilitation drug to repair brain damage (2025)

https://stemcell.ucla.edu/news/ucla-discovers-first-stroke-rehabilitation-drug-repair-brain-damage
388•bookofjoe•20h ago•78 comments

A HN post with negative points – how?

https://news.ycombinator.com/item?id=48104663
61•donohoe•3h ago•45 comments

Coursera and Udemy are now one company

https://blog.coursera.org/coursera-and-udemy-are-now-one-company-creating-the-worlds-most-compreh...
90•Anon84•3h ago•30 comments

Extremely Low Frequencies

https://computer.rip/2026-05-09-extremely-low-frequencies.html
132•pinewurst•10h ago•9 comments

UnDUNE II

https://liquidream.itch.io/undune2
36•tosh•1h ago•8 comments

Claude Platform on AWS

https://claude.com/blog/claude-platform-on-aws
181•matrixhelix•12h ago•81 comments

Rtwatch: Watch videos with friends using WebRTC

https://github.com/pion/rtwatch
56•nateb2022•3d ago•12 comments

I let AI build a tool to help me figure out what was waking me up at night

https://martin.sh/i-let-ai-build-a-tool-to-help-me-figure-out-what-was-waking-me-up-at-night/
226•showmypost•17h ago•236 comments

Software Internals Book Club

https://eatonphil.com/bookclub.html
139•aragonite•11h ago•25 comments

Google says criminal hackers used AI to find a major software flaw

https://www.nytimes.com/2026/05/11/us/politics/google-hackers-attack-ai.html
214•donohoe•1d ago•153 comments

I hate soldering

https://user8.bearblog.dev/rant/
170•James72689•4d ago•145 comments

Remembering Planet Source Code: Sharing Code Before GitHub Made It Easy

https://www.pietschsoft.com/post/2026/05/05/remembering-planet-source-code-sharing-code-before-gi...
34•pabs3•3d ago•5 comments

Nullsoft, 1997-2004 (2004)

https://slate.com/technology/2004/11/the-death-of-the-last-maverick-tech-company.html
305•downbad_•4d ago•85 comments

Boriel BASIC

https://zxbasic.readthedocs.io/en/docs/
57•AlexeyBrin•3d ago•20 comments

Optimize for change not application performance

https://www.echooff.dev/blog/developer-experience-is-a-performance-feature
32•lo1tuma•2d ago•14 comments

Interaction Models

https://thinkingmachines.ai/blog/interaction-models/
270•smhx•17h ago•35 comments

Unitree GD01: China's $537k rideable transformer robot is now in production

https://gagadget.com/en/709729-unitree-gd01-chinas-537k-rideable-transformer-robot-is-now-in-prod...
71•rguiscard•4h ago•47 comments

Show HN: TikTok but for scientific papers

https://andreaturchet.github.io/website/index.html
152•ciwrl•22h ago•67 comments

GitLab announces workforce reduction and end of their CREDIT values

https://about.gitlab.com/blog/gitlab-act-2/
603•AnonGitLabEmpl•17h ago•583 comments