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

Comments

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

GrapheneOS – Break Free from Google and Apple

https://blog.tomaszdunia.pl/grapheneos-eng/
323•to3k•3h ago•221 comments

Four Column ASCII (2017)

https://garbagecollected.org/2017/01/31/four-column-ascii/
219•tempodox•2d ago•39 comments

14-year-old Miles Wu folded origami pattern that holds 10k times its own weight

https://www.smithsonianmag.com/innovation/this-14-year-old-is-using-origami-to-design-emergency-s...
757•bookofjoe•18h ago•158 comments

How teaching molecules to think is revealing what a 'mind' is

https://www.newscientist.com/article/2513815-how-teaching-molecules-to-think-is-revealing-what-a-...
29•pella•3d ago•13 comments

Show HN: Glitchy camera – a circuit-bent camera simulator in the browser

https://glitchycam.com
74•elayabharath•1d ago•8 comments

Rise of the Triforce

https://dolphin-emu.org/blog/2026/02/16/rise-of-the-triforce/
321•max-m•16h ago•45 comments

Rendering the Visible Spectrum

https://brandonli.net/spectra/doc/
69•signa11•3d ago•9 comments

Poor Deming never stood a chance

https://surfingcomplexity.blog/2026/02/16/poor-deming-never-stood-a-chance/
121•todsacerdoti•11h ago•54 comments

A deep dive into Apple's .car file format

https://dbg.re/posts/car-file-format/
117•MrFinch•3d ago•32 comments

What your Bluetooth devices reveal

https://blog.dmcc.io/journal/2026-bluetooth-privacy-bluehood/
462•ssgodderidge•22h ago•172 comments

Rethinking High-School Science Fairs

https://asteriskmag.com/issues/13/rethinking-high-school-science-fairs
8•surprisetalk•3d ago•0 comments

Visual introduction to PyTorch

https://0byte.io/articles/pytorch_introduction.html
303•0bytematt•4d ago•21 comments

Xbox UI Portfolio Site

https://gabrielcabrera.co/
53•valgaze•7h ago•18 comments

Elephant trunk whiskers exhibit material intelligence

https://www.mpg.de/26113474/elephant-trunk-whiskers-exhibit-material-intelligence
13•gmays•3d ago•4 comments

Show HN: Free alternative to Wispr Flow, Superwhisper, and Monologue

https://github.com/zachlatta/freeflow
213•zachlatta•16h ago•102 comments

Evaluating AGENTS.md: are they helpful for coding agents?

https://arxiv.org/abs/2602.11988
167•mustaphah•1d ago•116 comments

"Token anxiety", a slot machine by any other name

https://jkap.io/token-anxiety-or-a-slot-machine-by-any-other-name/
162•presbyterian•19h ago•140 comments

Ghidra by NSA

https://github.com/NationalSecurityAgency/ghidra
390•handfuloflight•3d ago•202 comments

DBASE on the Kaypro II

https://stonetools.ghost.io/dbase-cpm/
64•TMWNN•3d ago•27 comments

Running NanoClaw in a Docker Shell Sandbox

https://www.docker.com/blog/run-nanoclaw-in-docker-shell-sandboxes/
126•four_fifths•14h ago•62 comments

Building for an audience of one: starting and finishing side projects with AI

https://codemade.net/blog/building-for-one/
83•lorisdev•13h ago•45 comments

Hear the "Amati King Cello", the Oldest Known Cello in Existence

https://www.openculture.com/2021/06/hear-the-amati-king-cello-the-oldest-known-cello-in-existence...
62•tesserato•4d ago•26 comments

Dark web agent spotted bedroom wall clue to rescue girl from abuse

https://www.bbc.com/news/articles/cx2gn239exlo
479•colinprince•12h ago•255 comments

State of Show HN: 2025

https://blog.sturdystatistics.com/posts/show_hn/
111•kianN•17h ago•24 comments

Show HN: Scanned 1927-1945 Daily USFS Work Diary

https://forestrydiary.com/
100•dogline•13h ago•18 comments

Neurons outside the brain

https://essays.debugyourpain.com/p/you-are-not-just-your-brain
113•yichab0d•18h ago•46 comments

Show HN: Jemini – Gemini for the Epstein Files

https://jmail.world/jemini
405•dvrp•1d ago•77 comments

Show HN: GitHub "Lines Viewed" extension to keep you sane reviewing long AI PRs

https://chromewebstore.google.com/detail/github-lines-viewed/npledcbofpmjjammgkkoeaehbphhdopi
28•somesortofthing•3d ago•25 comments

PCB Rework and Repair Guide [pdf]

https://www.intertronics.co.uk/wp-content/uploads/2017/05/PCB-Rework-and-Repair-Guide.pdf
147•varjag•2d ago•40 comments

Show HN: Wildex – Pokémon Go for real wildlife

https://apps.apple.com/us/app/wildex-identify-plants-animals/id6748092158
90•AnujNayyar•16h ago•60 comments