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

Comments

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

Do Not Turn Child Protection into Internet Access Control

https://news.dyne.org/child-protection-is-not-access-control/
297•smartmic•2h ago•112 comments

Tinybox- offline AI device 120B parameters

https://tinygrad.org/#tinybox
217•albelfio•3h ago•125 comments

Some things just take time

https://lucumr.pocoo.org/2026/3/20/some-things-just-take-time/
447•vaylian•8h ago•148 comments

Professional video editing, right in the browser with WebGPU and WASM

https://tooscut.app/
57•mohebifar•1h ago•18 comments

Attempts to post the latest Trivy security incident have been marked [dead]

https://news.ycombinator.com/from?site=github.com%2Faquasecurity
19•JoshuaDavid•1h ago•4 comments

Grafeo – A fast, lean, embeddable graph database built in Rust

https://grafeo.dev/
170•0x1997•8h ago•55 comments

Show HN: Termcraft – terminal-first 2D sandbox survival in Rust

https://github.com/pagel-s/termcraft
70•sebosch•4h ago•8 comments

Electronics for Kids, 2nd Edition

https://nostarch.com/electronics-for-kids-2e
68•0x54MUR41•2d ago•11 comments

How Invisalign became the biggest user of 3D printers

https://www.wired.com/story/how-invisalign-became-the-worlds-biggest-3d-printing-company/
118•mikhael•2d ago•87 comments

Bayesian statistics for confused data scientists

https://nchagnet.pages.dev/blog/bayesian-statistics-for-confused-data-scientists/
14•speckx•3d ago•0 comments

Floci – A free, open-source local AWS emulator

https://github.com/hectorvent/floci
14•shaicoleman•1h ago•1 comments

How Ford burned $12B in Brazil (2021)

https://www.reuters.com/business/autos-transportation/how-ford-burned-12-billion-brazil-2021-05-20/
7•kaycebasques•8h ago•0 comments

No Semicolons Needed

https://terts.dev/blog/no-semicolons-needed/
28•karakoram•4h ago•24 comments

Common Lisp Development Tooling

https://www.creativetension.co/posts/common-lisp-development-tooling
24•0bytematt•3h ago•2 comments

You can run a DNS server (2025)

https://simonsafar.com/2025/running_dns/
9•surprisetalk•1d ago•0 comments

Boomloom: Think with your hands

https://www.theboomloom.com
4•rasengan0•1d ago•0 comments

Seam carving with forward energy

https://pictolab.io/seam-carving
5•ChadNauseam•6h ago•2 comments

The paddle wheel aircraft carriers of Lake Michigan

https://signoregalilei.com/2026/03/08/the-paddle-wheel-aircraft-carriers-of-lake-michigan/
25•surprisetalk•4d ago•3 comments

Show HN: Atomic – self-hosted, semantically-connected personal knowledge base

https://github.com/kenforthewin/atomic
32•kenforthewin•3h ago•3 comments

No evidence cannabis helps anxiety, depression, or PTSD

https://www.sciencedaily.com/releases/2026/03/260319044656.htm
119•nothrowaways•3h ago•101 comments

ZJIT removes redundant object loads and stores

https://railsatscale.com/2026-03-18-how-zjit-removes-redundant-object-loads-and-stores/
67•tekknolagi•3d ago•10 comments

Hide macOS Tahoe's Menu Icons

https://512pixels.net/2026/03/hide-macos-tahoes-menu-icons-with-this-one-simple-trick/
68•soheilpro•5h ago•18 comments

Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

https://pbxscience.com/ubuntu-26-04-ends-46-years-of-silent-sudo-passwords/
299•akersten•18h ago•304 comments

Thinking Fast, Slow, and Artificial: How AI Is Reshaping Human Reasoning

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6097646
80•Anon84•7h ago•48 comments

Meta's Omnilingual MT for 1,600 Languages

https://ai.meta.com/research/publications/omnilingual-mt-machine-translation-for-1600-languages/?...
111•j0e1•3d ago•31 comments

Hawaii's worst flooding in 20 years threatens dam, prompts evacuations

https://www.nbcnews.com/weather/floods/hawaii-worst-flooding-in-20-years-rcna264573
50•geox•3h ago•15 comments

A Japanese glossary of chopsticks faux pas (2022)

https://www.nippon.com/en/japan-data/h01362/
448•cainxinth•1d ago•347 comments

Books of the Century by Le Monde

https://standardebooks.org/collections/le-mondes-100-books-of-the-century
89•zlu•2d ago•57 comments

Mamba-3

https://www.together.ai/blog/mamba-3
269•matt_d•4d ago•50 comments

Show HN: Joonote – A note-taking app on your lock screen and notification panel

https://joonote.com/
35•kilgarenone•8h ago•27 comments