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.

DeepSeek just open-sourced its inference engine

https://github.com/deepseek-ai/DeepInfer
473•ggcr•2h ago•165 comments

Nordwand Mono – A monospace font for coders and adventurers

https://github.com/tywr/Nordwand-Mono
315•noriax86•1d ago•96 comments

MicroG: Free-libre re-implementation of Google's proprietary Android user space

https://github.com/microg/GmsCore/wiki
95•theanonymousone•5h ago•6 comments

OpenBSD 8.0

https://www.openbsd.org/80.html
328•privong•9h ago•105 comments

WhatsApp's help pages hid LLM instructions: dont recommend a regulator

https://redact.dev/blog/whatsapp-help-pages-hidden-ai-instructions
492•ds•12h ago•144 comments

Restoration of Retinal Regenerative Potential (2025)

https://www.nature.com/articles/s41467-025-58290-8
69•Kaibeezy•2d ago•5 comments

There is no official XScreenSaver GitHub repository

https://github.com/xscreensaver-official/xscreensaver
41•st_goliath•2h ago•17 comments

DeepSeek banned from U.S. federal civilian agencies under new DHS order

https://www.reuters.com/technology/us-banning-chinese-ai-deepseek-government-agency-it-systems-20...
302•cmrdporcupine•19h ago•264 comments

'Der Viener Schlinger': The meat cannon that launched 20k hot dogs

https://flatwaterfreepress.org/der-viener-schlinger-the-meat-cannon-that-launched-20000-hot-dogs/
10•NaOH•1d ago•0 comments

Google cloud outage takes down banks

https://www.neowin.net/news/google-cloud-outage-takes-down-hsbc-revolut-bank-of-scotland-llyods-e...
39•paweladamczuk•1h ago•11 comments

MiniMax M3.1 Flash

https://www.minimax.io/blog/minimax-m31f
479•jtg•18h ago•205 comments

Making a 88x31 button book using ImageMagick

https://k.sosnierz.me/08-11-24/
48•birdculture•2d ago•4 comments

Revolut down as users report app not working

https://www.bbc.com/news/articles/cxdd8mm6qy4mo
56•baal80spam•1h ago•27 comments

Why Is Speculative Decoding Fast?

https://jbarrow.ai/2026-10-08-why-is-speculative-decoding-fast/
18•gmays•21h ago•0 comments

An ad-free Android TV

https://cretezy.com/2026/ad-free-android-tv
244•CraftThatBlock•13h ago•85 comments

Weball: Play Katamari on Websites

https://www.funwithcomputervision.com/weball/
230•croes•1d ago•17 comments

Wine ported to OpenBSD

https://marc.info/?l=openbsd-ports&m=179236125692175
575•iamnothere•22h ago•195 comments

It's still ok to enjoy programming

https://chriskiehl.com/article/it-is-still-ok-to-enjoy-programming
624•goostavos•2d ago•539 comments

I built a drone with only one motor [video]

https://www.youtube.com/watch?v=Ndftcft6XhU
565•hakonjdjohnsen•1d ago•129 comments

Ukraine claims first drone evacuation of wounded soldier

https://www.nbcnews.com/world/ukraine/ukraine-first-drone-evacuation-wounded-soldier-frontlines-h...
314•yzydserd•20h ago•242 comments

France's supermarket fridges were vulnerable online for months

https://ipinfo.io/blog/france-fridges-hack
183•emot•11h ago•164 comments

Go will reject certificate chains containing eight distrusted SPKIs

https://github.com/golang/go/issues/82345
109•mendym•8h ago•41 comments

How abliterated models can get you pwned

https://projectdiscovery.io/research/how-abliterated-models-can-get-you-pwned
150•chatmasta•12h ago•85 comments

Maxwell: A new kind of model that sits between code and hardware

https://heymaxwell.ai/
85•laginimaineb•21h ago•42 comments

RuneScape Bench: MMOs for Agents [video]

https://www.youtube.com/watch?v=cNm4zyUtWj0
204•evakhoury•2d ago•70 comments

Starcraft: Ashfall

https://starcraft-shooter-2026.pages.dev/
477•debo_•1d ago•147 comments

OpenBSD 8.0 release will have inteldrm/radeondrm/amdgpu drivers from Linux 6.18

https://bsd.network/@brynet/117407035545900963
159•doener•14h ago•38 comments

Ask HN: How to deal with shipping AI-written code you don't understand?

484•rzk•1d ago•615 comments

One Hash Bloom Filters

https://calabro.io/ohbf
114•jcalabro•14h ago•12 comments

How Do Fungi Keep the Planet Healthy?

https://www.quantamagazine.org/how-do-fungi-keep-the-planet-healthy-20261015/
57•marojejian•2d ago•9 comments