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

Comments

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

AI Police Reports: Year in Review

https://www.eff.org/deeplinks/2025/12/ai-police-reports-year-review
75•hn_acker•3d ago•28 comments

How uv got so fast

https://nesbitt.io/2025/12/26/how-uv-got-so-fast.html
797•zdw•14h ago•266 comments

QNX Self-Hosted Developer Desktop

https://devblog.qnx.com/qnx-self-hosted-developer-desktop-initial-release/
113•transpute•6h ago•61 comments

Always bet on text (2014)

https://graydon2.dreamwidth.org/193447.html
183•jesseduffield•8h ago•83 comments

Exe.dev

https://exe.dev/
148•achairapart•8h ago•69 comments

T-Ruby is Ruby with syntax for types

https://type-ruby.github.io/
109•thunderbong•11h ago•71 comments

The Best Things and Stuff of 2025

https://blog.fogus.me/2025/12/23/the-best-things-and-stuff-of-2025.html
212•adityaathalye•3d ago•25 comments

Experts explore new mushroom which causes fairytale-like hallucinations

https://nhmu.utah.edu/articles/experts-explore-new-mushroom-which-causes-fairytale-hallucinations
359•astronads•14h ago•182 comments

More Dynamic Cronjobs

https://george.mand.is/2025/09/more-dynamic-cronjobs/
11•0928374082•1h ago•2 comments

Langjam-Gamejam Devlog: Making a language, compiler, VM and 5 games in 52 hours

https://github.com/Syn-Nine/gar-lang/blob/main/DEVLOG.md
7•suioir•5d ago•0 comments

Publishing your work increases your luck

https://github.com/readme/guides/publishing-your-work
82•magoghm•7h ago•18 comments

Researchers develop a camera that can focus on different distances at once

https://engineering.cmu.edu/news-events/news/2025/12/19-perfect-shot.html
33•gnabgib•3d ago•11 comments

How Lewis Carroll computed determinants (2023)

https://www.johndcook.com/blog/2023/07/10/lewis-carroll-determinants/
169•tzury•12h ago•43 comments

One million (small web) screenshots

https://nry.me/posts/2025-10-09/small-web-screenshots/
63•squidhunter•4d ago•4 comments

SIMD City: Auto-Vectorisation

https://xania.org/202512/20-simd-city
27•brewmarche•6d ago•2 comments

Show HN: Witr – Explain why a process is running on your Linux system

https://github.com/pranshuparmar/witr
294•pranshuparmar•16h ago•38 comments

Package managers keep using Git as a database, it never works out

https://nesbitt.io/2025/12/24/package-managers-keep-using-git-as-a-database.html
615•birdculture•19h ago•356 comments

Pre-commit hooks are fundamentally broken

https://jyn.dev/pre-commit-hooks-are-fundamentally-broken/
11•todsacerdoti•4h ago•0 comments

CEO of Health Care Software Company Sentenced for $1B Fraud Conspiracy

https://www.justice.gov/opa/pr/ceo-health-care-software-company-sentenced-1b-fraud-conspiracy
77•healsdata•4h ago•49 comments

LearnixOS

https://www.learnix-os.com
213•gtirloni•18h ago•86 comments

Ask HN: What did you read in 2025?

216•kwar13•18h ago•295 comments

-tucky (2023)

https://languagelog.ldc.upenn.edu/nll/?p=58650
43•benatkin•3d ago•34 comments

Toys with the highest play-time and lowest clean-up-time

https://joannabregan.substack.com/p/toys-with-the-highest-play-time-and
358•surprisetalk•11h ago•216 comments

Reverse Engineering Hyperliquid

https://blog.can.ac/2025/12/20/reverse-engineering-hyperliquid/
11•pigeons•5d ago•2 comments

My insulin pump controller uses the Linux kernel. It also violates the GPL

https://old.reddit.com/r/linux/comments/1puojsr/the_device_that_controls_my_insulin_pump_uses_the/
399•davisr•12h ago•171 comments

Drawing with zero-width characters

https://zw.swerdlow.dev
96•benswerd•12h ago•29 comments

The Proton, the 'Most Complicated Thing You Could Possibly Imagine'

https://www.quantamagazine.org/inside-the-proton-the-most-complicated-thing-imaginable-20221019/
11•tzury•4h ago•0 comments

Parasites plagued Roman soldiers at Hadrian's Wall

https://arstechnica.com/science/2025/12/study-roman-soldiers-battled-parasites-at-hadrians-wall/
53•sipofwater•1w ago•39 comments

Moravec's Paradox and the Robot Olympics

https://www.physicalintelligence.company/blog/olympics
45•beklein•3d ago•3 comments

Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines

https://github.com/valdanylchuk/xcc700
110•isitcontent•16h ago•20 comments