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.

Cybersecurity looks like proof of work now

https://www.dbreunig.com/2026/04/14/cybersecurity-is-proof-of-work-now.html
168•dbreunig•1d ago•74 comments

I made a terminal pager

https://theleo.zone/posts/pager/
32•speckx•1h ago•4 comments

Google broke its promise to me – now ICE has my data

https://www.eff.org/deeplinks/2026/04/google-broke-its-promise-me-now-ice-has-my-data
997•Brajeshwar•6h ago•427 comments

The buns in McDonald's Japan's burger photos are all slightly askew

https://www.mcdonalds.co.jp/en/menu/burger/
161•bckygldstn•2h ago•85 comments

PiCore - Raspberry Pi Port of Tiny Core Linux

http://tinycorelinux.net/5.x/armv6/releases/README
64•gregsadetsky•4h ago•4 comments

Cal.com is going closed source

https://cal.com/blog/cal-com-goes-closed-source-why
181•Benjamin_Dobell•8h ago•148 comments

God sleeps in the minerals

https://wchambliss.wordpress.com/2026/03/03/god-sleeps-in-the-minerals/
430•speckx•11h ago•92 comments

Ohio prison inmates 'built computers and hid them in ceiling (2017)

https://www.bbc.com/news/technology-39576394
31•harambae•2h ago•12 comments

Live Nation illegally monopolized ticketing market, jury finds

https://www.bloomberg.com/news/articles/2026-04-15/live-nation-illegally-monopolized-ticketing-ma...
331•Alex_Bond•5h ago•103 comments

Hacker News CLI

https://pythonhosted.org/hackernews-cli/commands.html
24•rolph•2h ago•9 comments

ChatGPT for Excel

https://chatgpt.com/apps/spreadsheets/
85•armcat•2h ago•66 comments

Retrofitting JIT Compilers into C Interpreters

https://tratt.net/laurie/blog/2026/retrofitting_jit_compilers_into_c_interpreters.html
20•ltratt•12h ago•3 comments

Want to write a compiler? Just read these two papers (2008)

https://prog21.dadgum.com/30.html
456•downbad_•14h ago•139 comments

PBS Nova: Terror in Space (1998)

https://www.pbs.org/wgbh/nova/mir/
13•opengrass•4d ago•2 comments

YouTube now lets you turn off Shorts

https://www.theverge.com/streaming/912898/youtube-shorts-feed-limit-zero-minutes
24•pentagrama•32m ago•4 comments

Fixing a monitor that goes black, off or blinks due to static electricity (2023)

https://aalonso.dev/blog/2023/how-to-fix-monitor-that-goes-black-off-due-to-static-electricity-in...
109•cyclopeanutopia•3d ago•59 comments

Ask HN: Who is using OpenClaw?

178•misterchocolat•4h ago•217 comments

Good sleep, good learning, good life (2012)

https://super-memory.com/articles/sleep.htm
354•downbad_•14h ago•178 comments

How can I keep from singing?

https://blog.danieljanus.pl/singing/
38•nathell•1d ago•6 comments

Adaptional (YC S25) is hiring AI engineers

https://www.ycombinator.com/companies/adaptional/jobs/k7W6ge9-founding-engineer
1•acesohc•7h ago

Does Gas Town 'steal' usage from users' LLM credits to improve itself?

https://github.com/gastownhall/gastown/issues/3649
195•rektomatic•3h ago•93 comments

Anna's Archive loses $322M Spotify piracy case without a fight

https://torrentfreak.com/annas-archive-loses-322-million-spotify-piracy-case-without-a-fight/
311•askl•16h ago•347 comments

The Gemini app is now on Mac

https://blog.google/innovation-and-ai/products/gemini-app/gemini-app-now-on-mac-os/
62•thm•6h ago•31 comments

Do you even need a database?

https://www.dbpro.app/blog/do-you-even-need-a-database
190•upmostly•11h ago•237 comments

Golden eagles' return to English skies

https://www.bbc.co.uk/news/articles/cje4zlxqkqdo
39•techterrier•3d ago•20 comments

CRISPR takes important step toward silencing Down syndrome’s extra chromosome

https://medicalxpress.com/news/2026-04-crispr-bold-silencing-syndrome-extra.html
64•amichail•7h ago•49 comments

Forcing an inversion of control on the SaaS stack

https://www.100x.bot/a/client-side-injection-inversion-of-control-saas
70•shardullavekar•5d ago•43 comments

One interface, every protocol

https://openbindings.com/blog/one-interface-every-protocol
28•clevengermatt•4h ago•3 comments

Show HN: Libretto – Making AI browser automations deterministic

https://github.com/saffron-health/libretto
80•muchael•8h ago•23 comments

Costasiella kuroshimae

https://en.wikipedia.org/wiki/Costasiella_kuroshimae
139•vinnyglennon•3d ago•51 comments