frontpage.
newsnewestaskshowjobs

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.

EuroBirdPortal – Live bird movements across Europe

https://www.eurobirdportal.org/ebp/en/
43•NKosmatos•2h ago•10 comments

Fable 5.1 Solves the Cyphral Distich, a 370-year-old cipher

https://www.vals.ai/blogs/fable-solves-cyphral-distich
966•u1hcw9nx•13h ago•416 comments

A 386 PC for Your RP2350

https://github.com/rh1tech/frank-386
33•SamuraiLion•2h ago•11 comments

Spaceships (Reverse Asteroid)

https://spaceships.treybastian.com/
245•zdw•4d ago•45 comments

Registration without a phone number on Signal will use zero-knowledge proofs

https://community.signalusers.org/t/registration-without-a-phone-number/2222?page=10
273•Cider9986•12h ago•131 comments

An atlas of periodic solutions to the three-body problem

https://www.threebodyorbits.com/
15•danielmorozoff•2d ago•0 comments

Apple's Dimensional Drawings

https://developer.apple.com/accessories/dimensional-drawings/
208•herbertl•10h ago•78 comments

The case against JPEG XL

https://giannirosato.com/blog/post/case-against-jxl/
171•contact9879•9h ago•235 comments

Show HN: 1080p is 920px tall – 1k real browser viewports

https://screensize.net/reports/viewport-stats
18•zenpe•3h ago•12 comments

OpenArch – PyTorch implementations of modern LLM architectures

https://github.com/anuj0456/OpenArch
13•anuj0456•2h ago•3 comments

The Nature of Dance

https://vester.si/blog/nature-of-dance/
9•wonger_•2d ago•10 comments

Mullenweg has returned as CEO after attempted board ouster

https://techcrunch.com/2026/09/12/automattic-confirms-mullenweg-has-returned-as-ceo-after-attempt...
163•ilamont•14h ago•230 comments

OEMpocalypse: Unprivileged Android app to root on Samsung, Xiaomi, others

https://calif.io/research/oempocalypse
72•negura•8h ago•29 comments

Rope, twine and thread: Invisible technologies of the Stone Age

https://knowablemagazine.org/content/article/society/2026/prehistory-lost-threads
73•knowablemag•2d ago•23 comments

Ask HN: What are you working on? (September 2026)

180•david927•17h ago•558 comments

Julia 1.13 highlights

https://julialang.org/blog/2026/09/julia-1.13-highlights/
233•eigenspace•3d ago•24 comments

Why is Google still serving dodgy ads?

https://www.atomic14.com/2026/09/13/why-is-google-still-serving-dodgy-ads
829•iamflimflam1•17h ago•366 comments

Show HN: EterDB, a Postgres fork that makes it easy to recover from incidents

https://eterdb.com/
35•fdeth•3d ago•16 comments

Bad benchmarks and evals: Senior SWE-Bench, napkin math, and winter tires

https://danluu.com/exercise-7/
30•luu•3d ago•10 comments

The GDR and Vietnam: From Fake Coffee to Coffee Empire

https://www.katjahoyer.uk/p/the-gdr-and-vietnam-from-fake-coffee
86•NaOH•3d ago•40 comments

Flawed routers flood University of Wisconsin internet time server (2003)

https://pages.cs.wisc.edu/~plonka/netgear-sntp/
87•walrus01•14h ago•10 comments

Nike exits the S&P 100 after 18 years and a $200B market-cap wipeout

https://fortune.com/2026/09/08/nike-stock-plummets-sp500-market-cap-index/
145•andsoitis•7h ago•193 comments

Open-source AI and open models reading list

https://www.interconnects.ai/p/open-source-ai-reading-list
114•simonpure•10h ago•22 comments

CUDA for AMD on Windows

https://github.com/Speedstu/CUDA-for-AMD-Windows
168•chiassedu80•20h ago•90 comments

XCancel Taken Down Again

https://xcancel.com/#
52•gaganyaan•46m ago•45 comments

Pkgsrc Is Cool (2022)

https://www.wisellama.rocks/posts/2021-12-23-pkgsrc-is-cool/
7•Tomte•44m ago•0 comments

AI Robots – When will they be in our homes

https://spectrum.ieee.org/ai-robots
38•andsoitis•9h ago•39 comments

The Malicious Use of Artificial Intelligence

https://arxiv.org/abs/1802.07228
69•rasengan0•9h ago•15 comments

Astra and Fable still hack on simple variants of alignment evals from 2025

https://www.lesswrong.com/posts/munJKF7iWMsWJLAH2/astra-and-fable-still-hack-on-simple-variants-o...
440•Levitating•20h ago•205 comments

Five Words from Vanishing Fleece

https://blog.wordnik.com/five-words-from-vanishing-fleece
11•dan353hehe•2d ago•0 comments