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.

Show HN: 30u30.fyi – Is your startup founder on Forbes' most fraudulent list?

https://30u30.fyi
117•not-chatgpt•55m ago•43 comments

Fedware: Government apps that spy harder than the apps they ban

https://www.sambent.com/the-white-house-app-has-huawei-spyware-and-an-ice-tip-line/
323•speckx•4h ago•101 comments

Do your own writing

https://alexhwoods.com/dont-let-ai-write-for-you/
283•karimf•10h ago•87 comments

Learn Claude Code by doing, not reading

https://claude.nagdy.me/
76•taubek•2h ago•42 comments

Android Developer Verification

https://android-developers.googleblog.com/2026/03/android-developer-verification-rolling-out-to-a...
47•ingve•1h ago•21 comments

Turning a MacBook into a touchscreen with $1 of hardware (2018)

https://anishathalye.com/macbook-touchscreen/
132•HughParry•3h ago•60 comments

How to turn anything into a router

https://nbailey.ca/post/router/
543•yabones•9h ago•199 comments

The stealthy startup that pitched brainless human clones

https://www.technologyreview.com/2026/03/30/1134780/r3-bio-brainless-human-clones-full-body-repla...
36•joozio•12h ago•36 comments

Bird brains (2023)

https://www.dhanishsemar.com/writing/bird-brains
277•DiffTheEnder•9h ago•181 comments

Agents of Chaos

https://agentsofchaos.baulab.info/report.html
40•luu•3d ago•2 comments

Cherri – programming language that compiles to an Apple Shortuct

https://github.com/electrikmilk/cherri
214•mihau•2d ago•44 comments

Researchers find 3,500-year-old loom that reveals textile revolution

https://web.ua.es/en/actualidad-universitaria/2026/marzo2026/23-31/ua-researchers-find-3-500-year...
42•geox•3d ago•1 comments

Roulette Computers: Hidden Devices That Predict Spins

https://www.roulette-computers.com/
45•o4c•2d ago•9 comments

Seeing Like a Spreadsheet

https://davidoks.blog/p/how-the-spreadsheet-reshaped-america
58•paulpauper•2d ago•17 comments

William Blake, Remote by the Sea

https://www.laphamsquarterly.org/roundtable/william-blake-remote-sea
40•occurrence•3h ago•1 comments

OCR for construction documents does not work, we fixed it

https://www.getanchorgrid.com/developer/docs/endpoints/drawings-doors
112•wcisco17•7h ago•70 comments

IronGlass Brings Legendary Soviet Cinema Lenses to Mirrorless Cameras

https://petapixel.com/2026/02/19/ironglass-brings-legendary-soviet-cinema-lenses-to-mirrorless-ca...
7•PaulHoule•4d ago•0 comments

A sea of sparks: Seeing radioactivity

https://maurycyz.com/projects/spinthariscope/
41•maurycyz•4h ago•16 comments

Show HN: Coasts – Containerized Hosts for Agents

https://github.com/coast-guard/coasts
49•jsunderland323•7h ago•18 comments

CodingFont: A game to help you pick a coding font

https://www.codingfont.com/
279•nvahalik•7h ago•165 comments

Recover Apple Keychain

https://arkoinad.com/posts/apple_keychain_recovery.html
40•speckx•5h ago•12 comments

In math, rigor is vital, but are digitized proofs taking it too far?

https://www.quantamagazine.org/in-math-rigor-is-vital-but-are-digitized-proofs-taking-it-too-far-...
88•isaacfrond•4d ago•78 comments

Build123d: A Python CAD programming library

https://github.com/gumyr/build123d
105•Ivoah•1d ago•43 comments

I am definitely missing the pre-AI writing era

https://www.lesswrong.com/posts/BJ4pnropWdnzzgeJc/i-am-definitely-missing-the-pre-ai-writing-era
231•joozio•16h ago•183 comments

Mathematical methods and human thought in the age of AI

https://arxiv.org/abs/2603.26524
186•zaikunzhang•12h ago•74 comments

Take better notes, by hand

https://brianschrader.com/archive/take-better-notes-by-hand/
163•sonicrocketman•6h ago•75 comments

I use Excalidraw to manage my diagrams for my blog

https://blog.lysk.tech/excalidraw-frame-export/
262•mlysk•15h ago•106 comments

FTC action against Match and OkCupid for deceiving users, sharing personal data

https://www.ftc.gov/news-events/news/press-releases/2026/03/ftc-takes-action-against-match-okcupi...
217•gnabgib•7h ago•111 comments

Tickets Are Prompts

https://dheer.co/tickets-are-prompts/
12•bushido•1h ago•5 comments

From Proxmox to FreeBSD and Sylve in our office lab

https://www.iptechnics.com/blogs/from-proxmox-to-freebsd-and-sylve-in-our-office-lab
66•arch1e•2d ago•55 comments