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•1y ago

Comments

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

Cloudflare Turnstile requiring fingerprintable WebGL

https://hacktivis.me/articles/cloudflare-turnstile-webgl-fingerprinting
105•HypnoticOcelot•1h ago•47 comments

Dav2d

https://jbkempf.com/blog/2026/dav2d/
261•captain_bender•3h ago•76 comments

The solution might be cancelling my AI subscription

https://thoughts.hmmz.org/2026-05-31.html
62•dmw_ng•1h ago•30 comments

1-Bit Bonsai Image 4B Image Generation for Local Devices

https://prismml.com/news/bonsai-image-4b
13•modinfo•34m ago•2 comments

The Website Specification

https://specification.website/
327•k1m•8h ago•132 comments

London's Free Roof Terraces

https://diamondgeezer.blogspot.com/2026/05/londons-free-roof-terraces.html
186•zeristor•8h ago•92 comments

Restartable Sequences

https://justine.lol/rseq/
15•grappler•1h ago•3 comments

I Put a Datacenter GPU in My Gaming PC for £200

https://blog.tymscar.com/posts/v100localllm/
97•birdculture•1h ago•50 comments

Domain expertise has always been the real moat

https://www.brethorsting.com/blog/2026/05/domain-expertise-has-always-been-the-real-moat/
742•aaronbrethorst•18h ago•442 comments

Security Envelope Pattern collection – S.E.C.R.E.T

https://secret-archive.org/
55•ColinWright•2d ago•6 comments

Shantell Sans (2023)

https://shantellsans.com/process
337•aleda145•17h ago•40 comments

One year of Roto, a compiled scripting language for Rust

https://blog.nlnetlabs.nl/one-year-of-roto-the-compiled-scripting-language-for-rust/
88•Hasnep•2d ago•17 comments

The AV2 Video Standard Has Released (Final v1.0 Specification)

https://av2.aomedia.org
287•ksec•17h ago•127 comments

Inkstravaganza

https://www.inkandswitch.com/newsletter/dispatch-015/
14•surprisetalk•3d ago•3 comments

A Gentle Introduction to Lattice-Based Cryptography [pdf]

https://cryptography101.ca/wp-content/uploads/lattice-based-cryptography.pdf
128•jayhoon•2d ago•11 comments

I found a seashell in the middle of the desert

https://github.com/Hawzen/I-found-a-seashell-in-the-middle-of-the-desert#i-found-a-seashell-in-th...
377•Hawzen•2d ago•102 comments

Show HN: Atomic Editor – Obsidian-style live preview for CodeMirror 6

https://kenforthewin.github.io/atomic-editor/
13•kenforthewin•3h ago•4 comments

Avian Visitors

https://theodore.net/projects/AvianVisitors/
88•fdb•9h ago•7 comments

Frost: [Browser] Fingerprinting Remotely Using OPFS-Based SSD Timing [pdf]

https://hannesweissteiner.com/pdfs/frost.pdf
5•simjnd•1h ago•1 comments

The "Stars" of Titanic (2012)

https://blogs.loc.gov/inside_adams/2012/04/the-stars-of-titanic/
5•tosh•2d ago•0 comments

Show HN: Breathe CLI – Paced resonance breathing in the macOS terminal

https://github.com/marekkowalczyk/breathe-cli
78•marekkowalczyk•19h ago•10 comments

Telli (YC F24) is hiring in engineering, design, and GTM [Berlin, on-site]

https://hi.telli.com/join-us
1•sebselassie•8h ago

Folding Beijing

https://www.uncannymagazine.com/article/folding-beijing-2/
10•root-parent•48m ago•0 comments

A pictorial introduction to differential geometry (2017)

https://arxiv.org/abs/1709.08492
91•ricudis•10h ago•2 comments

You Weren't Meant to Have a Boss (2008)

https://paulgraham.com/boss.html
33•downbad_•2h ago•18 comments

Racket v9.2

https://blog.racket-lang.org/2026/05/racket-v9-2.html
210•spdegabrielle•3d ago•20 comments

Associative learning turns DEET from aversive to appetitive in Aedes aegypti

https://journals.biologists.com/jeb/article/229/10/jeb251935/371741/Associative-learning-switches...
59•croes•2d ago•28 comments

Mechanical Pencil: An illustrated celebration of the engineering around us

https://mechanical-pencil.com/
143•Muhammad523•15h ago•17 comments

Accenture to acquire Ookla

https://newsroom.accenture.com/news/2026/accenture-to-acquire-ookla-to-strengthen-network-intelli...
309•Garbage•23h ago•158 comments

What it's like to have your insulin pump die while you're on vacation

https://blog.lauramichet.com/what-its-like-to-have-the-machine-that-keeps-you-alive-die-while-you...
51•speckx•2d ago•48 comments