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: A game where you build a GPU

https://jaso1024.com/mvidia/
356•Jaso1024•5h ago•110 comments

Seat Pricing Is Dead

http://seatpricing.rip/
13•arnon•25m ago•2 comments

How many products does Microsoft have named 'Copilot'?

https://teybannerman.com/strategy/2026/03/31/how-many-microsoft-copilot-are-there.html
188•gpi•2h ago•86 comments

Embarrassingly simple self-distillation improves code generation

https://arxiv.org/abs/2604.01193
473•Anon84•11h ago•150 comments

Show HN: TurboQuant-WASM – Google's vector quantization in the browser

https://github.com/teamchong/turboquant-wasm
110•teamchong•6h ago•2 comments

Apple approves driver that lets Nvidia eGPUs work with Arm Macs

https://www.theverge.com/tech/907003/apple-approves-driver-that-lets-nvidia-egpus-work-with-arm-macs
265•naves•5h ago•129 comments

Author of "Careless People" banned from saying anything negative about Meta

https://www.thetimes.com/uk/technology-uk/article/sarah-wynn-williams-careless-people-meta-nrffdfpmf
625•macleginn•7h ago•419 comments

Ruckus: Racket for iOS

https://ruckus.defn.io/
15•nsm•2d ago•2 comments

Components of a Coding Agent

https://magazine.sebastianraschka.com/p/components-of-a-coding-agent
116•MindGods•8h ago•50 comments

Some Unusual Trees

https://thoughts.wyounas.com/p/some-unusual-trees
220•simplegeek•12h ago•66 comments

The Indie Internet Index – submit your favorite sites

https://iii.social
55•freshman_dev•7h ago•11 comments

Emotion concepts and their function in a large language model

https://www.anthropic.com/research/emotion-concepts-function
112•dnw•15h ago•98 comments

Electrical Transformer Manufacturing Is Throttling the Electrified Future

https://www.bloomberg.com/features/2025-bottlenecks-transformers/
45•toomuchtodo•3d ago•38 comments

The CMS is dead, long live the CMS

https://next.jazzsequence.com/posts/the-cms-is-dead-long-live-the-cms
96•taubek•10h ago•64 comments

Scientists observe an immune signaling complex forming inside cells

https://news.stanford.edu/stories/2026/03/immune-response-inside-cells-inflammation-research
77•ohjeez•4h ago•6 comments

Training mRNA Language Models Across 25 Species for $165

94•maziyar•3d ago•27 comments

Plague Ships (2020)

https://www.afloat.com.au/feature/plague-ships/
27•bryanrasmussen•4h ago•3 comments

Sopwith – 1984 Game (2000)

http://www.sopwith.org/
58•elvis70•3h ago•24 comments

IBM 3270 Information Display System: Color and Programmed Symbols (1979) [pdf]

https://bitsavers.org/pdf/ibm/3278/GA33-3056-0_3270_Information_Display_System_Color_and_Programm...
18•hggh•4h ago•1 comments

Show HN: sllm – Split a GPU node with other developers, unlimited tokens

https://sllm.cloud
86•jrandolf•6h ago•57 comments

Claude Code Found a Linux Vulnerability Hidden for 23 Years

https://mtlynch.io/claude-code-found-linux-vulnerability/
323•eichin•22h ago•202 comments

The Cathedral, the Bazaar, and the Winchester Mystery House

https://www.dbreunig.com/2026/03/26/winchester-mystery-house.html
134•dbreunig•3d ago•50 comments

Iranian missile blitz takes down AWS data centers in Bahrain and Dubai

https://www.tomshardware.com/tech-industry/iranian-missile-blitz-takes-down-aws-data-centers-in-b...
69•lschueller•3h ago•32 comments

Mbodi AI (YC P25) Is Hiring

https://www.ycombinator.com/companies/mbodi-ai/jobs/mf9L3sy-senior-robotics-engineer-systems-cont...
1•chitianhao•9h ago

When legal sports betting surges, so do Americans' financial problems

https://www.npr.org/2026/04/04/nx-s1-5773354/legal-sports-betting-research-credit-bankruptcy
110•pseudolus•6h ago•80 comments

Tell HN: Anthropic no longer allowing Claude Code subscriptions to use OpenClaw

1001•firloop•22h ago•764 comments

Notes from from Butterick's Practical Typography

https://adamadam.blog/2026/04/01/my-notes-from-buttericks-practical-typography/
21•chilipepperhott•2d ago•2 comments

The most-disliked people in the publishing industry

https://www.woman-of-letters.com/p/the-most-disliked-people-in-the-publishing
84•Caiero•3d ago•47 comments

Why the most valuable things you know are things you cannot say

https://deadneurons.substack.com/p/why-the-most-valuable-things-you
85•nr378•5h ago•36 comments

German men 18-45 need military permit for extended stays abroad

https://www.dw.com/en/german-men-need-military-permit-for-extended-stays-abroad/a-76662677
317•L_226•6h ago•526 comments