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

Comments

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

A 26,000-year astronomical monument hidden in plain sight (2019)

https://longnow.org/ideas/the-26000-year-astronomical-monument-hidden-in-plain-sight/
255•mkmk•4h ago•44 comments

Inside the secret world of Japanese snack bars

https://www.bbc.com/travel/article/20260116-inside-the-secret-world-of-japanese-snack-bars
24•rmason•58m ago•2 comments

The Unix Pipe Card Game

https://punkx.org/unix-pipe-game/
149•kykeonaut•5h ago•40 comments

The challenges of soft delete

https://atlas9.dev/blog/soft-delete.html
7•buchanae•56m ago•0 comments

I'm addicted to being useful

https://www.seangoedecke.com/addicted-to-being-useful/
432•swah•11h ago•209 comments

Running Claude Code dangerously (safely)

https://blog.emilburzo.com/2026/01/running-claude-code-dangerously-safely/
253•emilburzo•10h ago•204 comments

Unconventional PostgreSQL Optimizations

https://hakibenita.com/postgresql-unconventional-optimizations
218•haki•8h ago•25 comments

Show HN: wxpath – Declarative web crawling in XPath

https://github.com/rodricios/wxpath
50•rodricios•6d ago•7 comments

Maintenance: Of Everything, Part One

https://press.stripe.com/maintenance-part-one
30•mitchbob•3h ago•4 comments

Nvidia Stock Crash Prediction

https://entropicthoughts.com/nvidia-stock-crash-prediction
297•todsacerdoti•6h ago•246 comments

Fast Concordance: Instant concordance on a corpus of >1,200 books

https://iafisher.com/concordance/
23•evakhoury•4d ago•1 comments

Linux kernel framework for PCIe device emulation, in userspace

https://github.com/cakehonolulu/pciem
206•71bw•14h ago•74 comments

Danish pension fund divesting US Treasuries

https://www.reuters.com/business/danish-pension-fund-divest-its-us-treasuries-2026-01-20/
522•mythical_39•7h ago•570 comments

The Zen of Reticulum

https://github.com/markqvist/Reticulum/blob/master/Zen%20of%20Reticulum.md
86•mikece•8h ago•56 comments

Level S4 solar radiation event

https://www.swpc.noaa.gov/news/g4-severe-geomagnetic-storm-levels-reached-19-jan-2026
592•WorldPeas•1d ago•197 comments

Instabridge has acquired Nova Launcher

https://novalauncher.com/nova-is-here-to-stay
85•KORraN•3h ago•69 comments

When "Likers'' Go Private: Engagement with Reputationally Risky Content on X

https://arxiv.org/abs/2601.11140
28•linolevan•3h ago•19 comments

Avoiding fan traps in database design and system diagrams

https://www.ilograph.com/blog/posts/avoid-fan-traps-in-system-diagrams/
15•billyp-rva•2d ago•2 comments

Reticulum, a secure and anonymous mesh networking stack

https://github.com/markqvist/Reticulum
333•brogu•22h ago•87 comments

The secret medieval tunnels that we still don't understand

https://weirdmedievalguys.substack.com/p/the-secret-medieval-tunnels-that
50•coloneltcb•3h ago•24 comments

Channel3 (YC S25) Is Hiring

https://www.ycombinator.com/companies/channel3/jobs/3DIAYYY-backend-engineer
1•aschiff1•10h ago

Show HN: Ocrbase – pdf → .md/.json document OCR and structured extraction API

https://github.com/majcheradam/ocrbase
80•adammajcher•9h ago•29 comments

A scammer's blueprint: How cybercriminals plot to rob a target in a week

https://www.reuters.com/graphics/SOUTHEASTASIA-SCAMS/MANUALS/klpyjlqelvg/
26•giuliomagnifico•2h ago•7 comments

Google Meet Reactions: Reverse Engineering the WebRTC Channel for Emoji

https://www.agilesoftwaredevelopment.com/en/posts/google-meet-reactions-webrtc/
6•artemfi•2h ago•0 comments

IP over Avian Carriers with Quality of Service (1999)

https://www.rfc-editor.org/rfc/rfc2549.html
64•mig4ng•11h ago•24 comments

De-dollarization: Is the US dollar losing its dominance? (2025)

https://www.jpmorgan.com/insights/global-research/currencies/de-dollarization
536•andsoitis•6h ago•713 comments

What came first: the CNAME or the A record?

https://blog.cloudflare.com/cname-a-record-order-dns-standards/
445•linolevan•1d ago•153 comments

The Alignment Game (2023)

https://dmvaldman.github.io/alignment-game/
48•dmvaldman•4d ago•9 comments

Improving the performance of WAT parser

https://blog.gplane.win/posts/improve-wat-parser-perf.html
100•gplane•5d ago•34 comments

Prediction markets are ushering in a world in which news becomes about gambling

https://www.theatlantic.com/technology/2026/01/america-polymarket-disaster/685662/
473•krustyburger•2d ago•458 comments