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

Comments

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

Stop Flock

https://stopflock.com
179•cdrnsf•4h ago•19 comments

Claude Code Routines

https://code.claude.com/docs/en/routines
427•matthieu_bl•9h ago•270 comments

Rare concert recordings are landing on the Internet Archive

https://techcrunch.com/2026/04/13/thousands-of-rare-concert-recordings-are-landing-on-the-interne...
527•jrm-veris•12h ago•160 comments

The Orange Pi 6 Plus

https://taoofmac.com/space/reviews/2026/04/11/1900
120•rcarmo•3d ago•85 comments

Fuck the cloud (2009)

https://ascii.textfiles.com/archives/1717
99•downbad_•4h ago•59 comments

Picasso's Guernica (Gigapixel)

https://guernica.museoreinasofia.es/gigapixel/#3/63.11/-120.59
48•guigar•3d ago•11 comments

A Communist Apple II and Fourteen Years of Not Knowing What You're Testing

https://llama.gs/blog/index.php/2026/04/10/friday-archaeology-a-communist-apple-ii-and-fourteen-y...
32•major4x•4d ago•5 comments

5NF and Database Design

https://kb.databasedesignbook.com/posts/5nf/
134•petalmind•9h ago•53 comments

Turn your best AI prompts into one-click tools in Chrome

https://blog.google/products-and-platforms/products/chrome/skills-in-chrome/
107•xnx•8h ago•55 comments

The dangers of California's legislation to censor 3D printing

https://www.eff.org/deeplinks/2026/04/dangers-californias-legislation-censor-3d-printing
245•salkahfi•1d ago•261 comments

Ask HN: Easiest UX for Seniors

14•khoury•3d ago•4 comments

Let's talk space toilets

https://mceglowski.substack.com/p/lets-talk-space-toilets
139•zdw•1d ago•47 comments

The FCC just saved Netgear from its router ban for no obvious reason

https://www.theverge.com/tech/911888/netgear-router-ban-conditional-approval
28•HotGarbage•56m ago•8 comments

guide.world: A compendium of travel guides

https://guide.world/
76•firloop•5d ago•10 comments

I wrote to Flock's privacy contact to opt out of their domestic spying program

https://honeypot.net/2026/04/14/i-wrote-to-flocks-privacy.html
500•speckx•8h ago•207 comments

Tell HN: Fiverr left customer files public and searchable

351•morpheuskafka•7h ago•62 comments

Apple App Store threatened to remove Grok over deepfakes: Letter

https://www.nbcnews.com/tech/tech-news/apple-threat-remove-grok-app-store-deepfake-letter-musk-x-...
35•donohoe•2h ago•2 comments

Show HN: Plain – The full-stack Python framework designed for humans and agents

https://github.com/dropseed/plain
69•focom•8h ago•24 comments

OpenSSL 4.0.0

https://github.com/openssl/openssl/releases/tag/openssl-4.0.0
203•petecooper•8h ago•67 comments

Backblaze has stopped backing up OneDrive and Dropbox folders and maybe others

https://rareese.com/posts/backblaze/
970•rrreese•17h ago•595 comments

Troubleshooting Email Delivery to Microsoft Users

https://rozumem.xyz/posts/14
41•rozumem•2d ago•10 comments

OpenAI's $852B valuation faces investor scrutiny amid strategy shift, FT reports

https://www.reuters.com/legal/transactional/openai-investors-question-852-billion-valuation-strat...
7•abdelhousni•27m ago•0 comments

Free, fast diagnostic tools for DNS, email authentication, and network security

https://mrdns.com/
28•dogsnews•5h ago•1 comments

Show HN: LangAlpha – what if Claude Code was built for Wall Street?

https://github.com/ginlix-ai/langalpha
109•zc2610•11h ago•36 comments

Introspective Diffusion Language Models

https://introspective-diffusion.github.io/
229•zagwdt•18h ago•44 comments

jj – the CLI for Jujutsu

https://steveklabnik.github.io/jujutsu-tutorial/introduction/what-is-jj-and-why-should-i-care.html
492•tigerlily•15h ago•437 comments

DaVinci Resolve – Photo

https://www.blackmagicdesign.com/products/davinciresolve/photo
1057•thebiblelover7•23h ago•264 comments

A new spam policy for “back button hijacking”

https://developers.google.com/search/blog/2026/04/back-button-hijacking
835•zdw•22h ago•475 comments

Trusted access for the next era of cyber defense

https://openai.com/index/scaling-trusted-access-for-cyber-defense/
58•surprisetalk•5h ago•45 comments

Ask HN: My ISP is telling my neighbors their slow internet is because of me

29•_z369•2h ago•32 comments