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

Comments

stevoski•11mo 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•11mo 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•11mo 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_•11mo ago
Spotbugs or checkstyle etc... would catch these. What does AI add here?
xyst•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
stupid af
Traubenfuchs•11mo 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•11mo 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.

Fast16: Cyberweapon that predates Stuxnet by five years

https://hackingpassion.com/fast16-pre-stuxnet-cyber-sabotage/
24•dd23•48m ago•4 comments

Magic: The Gathering took me from N2 to Japanese fluency

https://www.tokyodev.com/articles/how-magic-the-gathering-took-me-from-n2-to-japanese-fluency
33•pwim•2d ago•5 comments

Clay PCB Tutorial

https://feministhackerspaces.cargo.site/Clay-PCB-Tutorial
158•j0r0b0•5h ago•104 comments

SWE-bench Verified no longer measures frontier coding capabilities

https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/
194•kmdupree•7h ago•119 comments

Human Source License (HSL)

https://github.com/xdgrulez/human-source-license
10•xdgrulez•21m ago•5 comments

The Visible Zorker: Zork 1

https://eblong.com/infocom/visi/zork1/
65•PLenz•4h ago•5 comments

The 1944 Warsaw Uprising, in Color

https://www.barwypowstania.pl/
13•keiferski•1h ago•0 comments

GoDaddy gave a domain to a stranger without any documentation

https://anchor.host/godaddy-gave-a-domain-to-a-stranger-without-any-documentation/
393•jamesponddotco•4h ago•153 comments

AI should elevate your thinking, not replace it

https://www.koshyjohn.com/blog/ai-should-elevate-your-thinking-not-replace-it/
94•koshyjohn•1h ago•93 comments

Show HN: Free textbook on engineering thermodynamics

https://thermodynamicsbook.com/
74•2DcAf•5h ago•26 comments

Statecharts: hierarchical state machines

https://statecharts.dev/
260•sph•11h ago•75 comments

An AI agent deleted our production database. The agent's confession is below

https://twitter.com/lifeof_jer/status/2048103471019434248
251•jeremyccrane•4h ago•333 comments

Amateur armed with ChatGPT solves an Erdős problem

https://www.scientificamerican.com/article/amateur-armed-with-chatgpt-vibe-maths-a-60-year-old-pr...
705•pr337h4m•1d ago•482 comments

Dillo Browser Release 3.3.0

https://dillo-browser.org/release/3.3.0/
110•rodarima•3h ago•18 comments

Orinoco: Young Generation Garbage Collection

https://v8.dev/blog/orinoco-parallel-scavenger
20•plow-tycoon•3d ago•0 comments

Asahi Linux Progress Linux 7.0

https://asahilinux.org/2026/04/progress-report-7-0/
555•elisaado•10h ago•251 comments

Sloppy Copies

https://www.markround.com/blog/2026/04/19/sloppy-copies/
45•dev_hugepages•2d ago•12 comments

Why has there been so little progress on Alzheimer's disease?

https://freakonomics.com/podcast/why-has-there-been-so-little-progress-on-alzheimers-disease/
384•chiefalchemist•20h ago•258 comments

Waymo says can't avoid bike lanes because riders want to be dropped off in them

https://road.cc/news/driverless-taxis-veering-into-cycle-lanes-normal-practice-says-waymo
150•randycupertino•2h ago•179 comments

Plants can sense the sound of rain, a new study finds

https://news.mit.edu/2026/plants-can-sense-sound-rain-new-study-finds-0422
56•paulpauper•2h ago•7 comments

If more than 50% press blue, everyone survives. Red pressers always survive

https://shankwiler.com/posts/button-survival-hypothetical/
33•iuvcaw•3h ago•111 comments

Show HN: Turning a Gaussian Splat into a videogame

https://blog.playcanvas.com/turning-a-gaussian-splat-into-a-videogame/
181•yak32•3d ago•37 comments

Show HN: Auge Vision from Your Terminal

https://auge.franzai.com/
10•franze•1h ago•1 comments

If you stop hiring juniors, your senior engineers own you

https://evalcode.com/posts/if-you-stop-hiring-juniors-your-seniors-own-you/
68•milkglass•1h ago•47 comments

QNX on the Commodore 900 – Raiders of the lost hard drive [video] (2025)

https://archive.fosdem.org/2025/schedule/event/fosdem-2025-5479-raiders-of-the-lost-hard-drive/
43•rbanffy•8h ago•1 comments

USB Cheat Sheet (2022)

https://fabiensanglard.net/usbcheat/index.html
474•gwerbret•23h ago•82 comments

Tell HN: An app is silently installing itself on my iPhone every day

497•_-x-_•20h ago•177 comments

GitHub unwanted UX change: issue links now open in a popup

https://github.com/orgs/community/discussions/192666
202•luckman212•6h ago•108 comments

GnuPG – post-quantum crypto landing in mainline

https://lists.gnupg.org/pipermail/gnupg-announce/2026q2/000504.html
157•zdkaster•17h ago•51 comments

Mine, a Coalton and Common Lisp IDE

https://coalton-lang.github.io/20260424-mine/
96•Jach•2d ago•4 comments