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.

Claude Sonnet 4.6

https://www.anthropic.com/news/claude-sonnet-4-6
871•adocomplete•8h ago•777 comments

Advice, not control: the role of Remote Assistance in Waymo's operations

https://waymo.com/blog/?modal=short-advice-not-control-the-role-of-remote-assistance
34•xnx•49m ago•19 comments

Thank HN: You helped save 33k lives

433•chaseadam17•9h ago•54 comments

BarraCUDA Open-source CUDA compiler targeting AMD GPUs

https://github.com/Zaneham/BarraCUDA
162•rurban•5h ago•51 comments

Rathbun's Operator

https://crabby-rathbun.github.io/mjrathbun-website/blog/posts/rathbuns-operator.html
48•bb88•1h ago•33 comments

Show HN: AsteroidOS 2.0 – Nobody asked, we shipped anyway

https://asteroidos.org/news/2-0-release/index.html
275•moWerk•6h ago•33 comments

I swear the UFO is coming any minute

https://www.experimental-history.com/p/i-swear-the-ufo-is-coming-any-minute
100•Ariarule•3h ago•23 comments

Gentoo on Codeberg

https://www.gentoo.org/news/2026/02/16/codeberg.html
255•todsacerdoti•8h ago•82 comments

Using go fix to modernize Go code

https://go.dev/blog/gofix
279•todsacerdoti•9h ago•64 comments

Google Public CA is down

https://status.pki.goog/incidents/5oJEbcU3ZfMfySTSXXd3
134•aloknnikhil•1h ago•69 comments

So you want to build a tunnel

https://practical.engineering/blog/2026/2/17/so-you-want-to-build-a-tunnel
166•crescit_eundo•9h ago•71 comments

Minimal x86 Kernel Zig

https://github.com/lopespm/zig-minimal-kernel-x86
11•lopespm•2h ago•1 comments

Async/Await on the GPU

https://www.vectorware.com/blog/async-await-on-gpu/
155•Philpax•9h ago•45 comments

Thousands of CEOs just admitted AI had no impact on employment or productivity

https://fortune.com/2026/02/17/ai-productivity-paradox-ceo-study-robert-solow-information-technol...
21•virgildotcodes•27m ago•3 comments

Show HN: I wrote a technical history book on Lisp

https://berksoft.ca/gol/
159•cdegroot•10h ago•54 comments

Structured AI (YC F25) Is Hiring

https://www.ycombinator.com/companies/structured-ai/jobs/q3cx77y-gtm-intern
1•issygreenslade•5h ago

Show HN: Pg-typesafe – Strongly typed queries for PostgreSQL and TypeScript

https://github.com/n-e/pg-typesafe
44•n_e•7h ago•18 comments

I converted 2D conventional flight tracking into 3D

https://aeris.edbn.me/?city=SFO
214•kewonit•11h ago•44 comments

Assistant to the Regional Manager

https://smallpotatoes.paulbloom.net/p/assistant-to-the-regional-manager
58•NaOH•4d ago•22 comments

Use Microsoft Office Shortcuts in Libre Office

https://github.com/Zaki101Aslam/MS-office-shortcuts-for-Libre-Office
16•Zaki101Aslam•2d ago•3 comments

Is Show HN dead? No, but it's drowning

https://www.arthurcnops.blog/death-of-show-hn/
402•acnops•15h ago•342 comments

It's not just you, YouTube is partially down in outage

https://9to5google.com/2026/02/17/youtube-outage-february-2026/
6•aqeelat•7m ago•1 comments

Physicists Make Electrons Flow Like Water

https://www.quantamagazine.org/physicists-make-electrons-flow-like-water-20260211/
75•rbanffy•4d ago•8 comments

'My Words Are Like an Uncontrollable Dog': On Life with Nonfluent Aphasia

https://thereader.mitpress.mit.edu/my-words-are-like-an-uncontrollable-dog-on-life-with-nonfluent...
23•anarbadalov•3h ago•2 comments

Show HN: Box of Rain - Auto-Layouted ASCII Diagrams

https://github.com/switz/box-of-rain
14•switz•3d ago•4 comments

HackMyClaw

https://hackmyclaw.com/
255•hentrep•9h ago•132 comments

Create bootable ISO image files which are compatible with the Amiga CD32

https://github.com/fuseoppl/isocd-win
6•doener•2h ago•0 comments

Contra "Grandmaster-level chess without search" (2024)

https://cosmo.tardis.ac/files/2024-02-13-searchless.html
29•luu•1d ago•1 comments

The Godless Students of London University

https://www.historytoday.com/archive/feature/godless-students-london-university
7•samclemens•4d ago•2 comments

I Use Obsidian

https://stephango.com/vault
9•hisamafahri•3h ago•1 comments