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.

My astrophotography in the movie project Hail Mary

https://rpastro.square.site/s/stories/phm
513•wallflower•3d ago•145 comments

Meta and YouTube Found Negligent in Landmark Social Media Addiction Case

https://www.nytimes.com/2026/03/25/technology/social-media-trial-verdict.html
208•mrjaeger•2h ago•89 comments

Ensu – Ente’s Local LLM app

https://ente.com/blog/ensu/
289•matthiaswh•6h ago•131 comments

Quantization from the Ground Up

https://ngrok.com/blog/quantization
75•samwho•3h ago•14 comments

Thoughts on slowing the fuck down

https://mariozechner.at/posts/2026-03-25-thoughts-on-slowing-the-fuck-down/
378•jdkoeck•5h ago•215 comments

TurboQuant: Redefining AI efficiency with extreme compression

https://research.google/blog/turboquant-redefining-ai-efficiency-with-extreme-compression/
428•ray__•14h ago•119 comments

Antimatter has been transported for the first time

https://www.nature.com/articles/d41586-026-00950-w
224•leephillips•4h ago•110 comments

Goodbye to Sora

https://twitter.com/soraofficialapp/status/2036532795984715896
1023•mikeocool•23h ago•755 comments

Tracy Kidder has died

https://www.nytimes.com/2026/03/25/books/tracy-kidder-dead.html
94•ghc•2h ago•31 comments

VitruvianOS – Desktop Linux Inspired by the BeOS

https://v-os.dev
298•felixding•16h ago•184 comments

Sony V. Cox Decision Reversed

https://supreme.justia.com/cases/federal/us/607/24-171/
119•rileymichael•4h ago•66 comments

Looking at Unity made me understand the point of C++ coroutines

https://mropert.github.io/2026/03/20/unity_cpp_coroutines/
121•ingve•3d ago•112 comments

Flighty Airports

https://flighty.com/airports
486•skogstokig•19h ago•166 comments

Tell HN: Litellm 1.82.7 and 1.82.8 on PyPI are compromised

https://github.com/BerriAI/litellm/issues/24512
884•dot_treo•1d ago•465 comments

Miscellanea: The War in Iran

https://acoup.blog/2026/03/25/miscellanea-the-war-in-iran/
246•decimalenough•15h ago•347 comments

Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller

https://videojs.org/blog/videojs-v10-beta-hello-world-again
581•Heff•1d ago•119 comments

Building a coding agent in Swift from scratch

https://github.com/ivan-magda/swift-claude-code
52•vanyaland•8h ago•12 comments

Data centers are transitioning from AC to DC

https://spectrum.ieee.org/data-center-dc
261•jnord•18h ago•314 comments

Jury finds Meta liable in case over child sexual exploitation on its platforms

https://www.cnn.com/2026/03/24/tech/meta-new-mexico-trial-jury-deliberation
187•billfor•21h ago•400 comments

Slovenian officials blame Israeli firm Black Cube for trying to manipulate vote

https://www.wsj.com/world/europe/spies-lies-and-fake-investors-in-disguise-how-plotters-tried-to-...
394•cramsession•3h ago•168 comments

Updates to GitHub Copilot interaction data usage policy

https://github.blog/news-insights/company-news/updates-to-github-copilot-interaction-data-usage-p...
16•prefork•25m ago•3 comments

Ball Pit

https://codepen.io/mrdoob_/full/NPRwLZd
9•memalign•25m ago•3 comments

Musketeer d'Artagnan's remains believed found under Dutch church

https://www.bbc.co.uk/news/articles/cm2rew2dgzzo
62•xenocratus•3h ago•20 comments

Apple Business

https://www.apple.com/newsroom/2026/03/introducing-apple-business-a-new-all-in-one-platform-for-b...
706•soheilpro•1d ago•403 comments

VNDB founder Yorhel has died

https://vndb.org/t24787
168•indrora•3d ago•25 comments

Show HN: I built a site that maps the web from a bounty hunter's perspective

https://www.neobotnet.com/
34•caffeinedoom•2d ago•0 comments

I wanted to build vertical SaaS for pest control, so I took a technician job

https://www.onhand.pro/p/i-wanted-to-build-vertical-saas-for-pest-control-i-took-a-technician-job...
407•tezclarke•22h ago•174 comments

Arm AGI CPU

https://newsroom.arm.com/blog/introducing-arm-agi-cpu
403•RealityVoid•1d ago•288 comments

Supreme Court Sides with Cox in Copyright Fight over Pirated Music

https://www.nytimes.com/2026/03/25/us/politics/supreme-court-cox-music-copyright.html
158•oj2828•4h ago•97 comments

Microbenchmarking Chipsets for Giggles

https://chipsandcheese.com/p/microbenchmarking-chipsets-for-giggles
50•zdw•2d ago•3 comments