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.

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/
61•chiefalchemist•1h ago•26 comments

USB Cheat Sheet (2022)

https://fabiensanglard.net/usbcheat/index.html
160•gwerbret•4h ago•46 comments

The Free Universal Construction Kit

https://fffff.at/free-universal-construction-kit/
273•robinhouston•3d ago•51 comments

1-Bit Hokusai's "The Great Wave" (2023)

https://www.hypertalking.com/2023/05/08/1-bit-pixel-art-of-hokusais-the-great-wave-off-kanagawa/
525•stephen-hill•3d ago•87 comments

OpenAI Privacy Filter

https://openai.com/index/introducing-openai-privacy-filter/
90•tanelpoder•3d ago•16 comments

Her Life Savings Mysteriously Disappeared After a Systems Glitch

https://www.nytimes.com/2026/04/25/your-money/fidelity-investments-fraud-alert.html
30•danso•2h ago•21 comments

America's Geothermal Breakthrough

https://oilprice.com/Alternative-Energy/Geothermal-Energy/Americas-Geothermal-Breakthrough-Could-...
67•sleepyguy•6h ago•75 comments

Using coding assistance tools to revive projects you never were going to finish

https://blog.matthewbrunelle.com/its-ok-to-use-coding-assistance-tools-to-revive-the-projects-you...
180•speckx•9h ago•109 comments

The Joy of Folding Bikes

https://blog.korny.info/2026/04/19/the-joy-of-folding-bikes
81•pavel_lishin•3d ago•49 comments

Flickr: The first and last great photo platform

https://petapixel.com/2026/04/22/flickr-the-first-and-last-great-photo-platform/
32•Nrbelex•3d ago•8 comments

Optimizing Datalog for the GPU

https://dl.acm.org/doi/10.1145/3669940.3707274
17•tosh•2d ago•0 comments

Math Is Hard – OpenBSD Stories

http://miod.online.fr/software/openbsd/stories/vaxfp.html
33•signa11•2d ago•0 comments

New 10 GbE USB adapters are cooler, smaller, cheaper

https://www.jeffgeerling.com/blog/2026/new-10-gbe-usb-adapters-cooler-smaller-cheaper/
547•calcifer•20h ago•320 comments

Simulacrum of Knowledge Work

https://blog.happyfellow.dev/simulacrum-of-knowledge-work/
95•thehappyfellow•8h ago•33 comments

How Hard Is It to Open a File?

https://blog.sebastianwick.net/posts/how-hard-is-it-to-open-a-file/
60•ffin•1d ago•8 comments

Mine, an IDE for Coalton and Common Lisp

https://coalton-lang.github.io/mine/
72•varjag•8h ago•21 comments

Desmond Morris has died

https://www.bbc.com/news/articles/c51y797v200o
106•martey•5d ago•19 comments

What async promised and what it delivered

https://causality.blog/essays/what-async-promised/
158•zdw•3d ago•178 comments

Martin Galway's music source files from 1980's Commodore 64 games

https://github.com/MartinGalway/C64_music
159•ingve•15h ago•22 comments

Show HN: Kloak, A secret manager that keeps K8s workload away from secrets

https://getkloak.io/
45•neo2006•6h ago•35 comments

GPT‑5.5 Bio Bug Bounty

https://openai.com/index/gpt-5-5-bio-bug-bounty/
128•Murfalo•11h ago•97 comments

Discret 11, the French TV encryption of the 80s

https://fabiensanglard.net/discret11/
148•adunk•14h ago•26 comments

Lute: A Standalone Runtime for Luau

https://lute.luau.org/
60•vrn-sn•3d ago•11 comments

Colorado Adds Open-Source Exemption to Age-Verification Bill

https://fosstodon.org/@carlrichell/116460505717380644
43•terminalbraid•3h ago•3 comments

Can you stop beans from making you gassy?

https://www.seriouseats.com/how-to-reduce-bean-gas-tested-11883862
104•jstrieb•5h ago•82 comments

Which one is more important: more parameters or more computation? (2021)

https://parl.ai/projects/params_vs_compute/
50•jxmorris12•1d ago•9 comments

Insights into firewood use by early Middle Pleistocene hominins

https://www.sciencedirect.com/science/article/pii/S0277379126001824
50•wslh•3d ago•20 comments

A web-based RDP client built with Go WebAssembly and grdp

https://github.com/nakagami/grdpwasm
111•mariuz•15h ago•43 comments

Agents Aren't Coworkers, Embed Them in Your Software

https://www.feldera.com/blog/ai-agents-arent-coworkers-embed-them-in-your-software
32•gz09•2h ago•11 comments

Plain text has been around for decades and it’s here to stay

https://unsung.aresluna.org/plain-text-has-been-around-for-decades-and-its-here-to-stay/
277•rbanffy•1d ago•138 comments