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.

Show HN: AISlop, a CLI for catching AI generated code smells

https://github.com/scanaislop/aislop
44•Heavykenny•51m ago•30 comments

The UK Government's Low Value Purchase System Is a Waste of Time

https://shkspr.mobi/blog/2026/05/the-uk-governments-low-value-purchase-system-is-a-waste-of-time/
77•ColinWright•2h ago•39 comments

Tulip mania: when a single flower was worth more than a house (2025)

https://dutchreview.com/culture/tulip-mania-netherlands/
69•dotcoma•2h ago•62 comments

Claude Opus 4.8

https://www.anthropic.com/news/claude-opus-4-8
1650•craigmart•21h ago•1285 comments

Bricks and Minifigs Stole a Man's $200k Lego Collection

https://mybricklog.com/blog/bricks-minifigs-corporate-stole-old-mans-200000-lego-collection
1150•philips•19h ago•508 comments

Please Use AI

https://shawnsmucker.substack.com/p/please-use-ai
56•garycomtois•38m ago•4 comments

Local Git Remotes

https://cblgh.org/posts/local-git-remotes/
26•surprisetalk•1h ago•20 comments

High Density Living, 2000 Years Ago: Inside the Roman Apartment Building

https://commonedge.org/high-density-living-2000-years-ago-inside-the-roman-apartment-building/
25•surprisetalk•1h ago•5 comments

Is This Sustainable?

https://jamiehurst.co.uk/2026-05-24_ai-sustainable
60•ColinEberhardt•4h ago•45 comments

Claude Code – Everything You Can Configure That the Docs Don't Tell You

https://buildingbetter.tech/p/i-read-the-claude-code-source-code
241•ankitg12•12h ago•50 comments

Cedana (YC S23) Is Hiring

https://www.ycombinator.com/companies/cedana/jobs/d1vYocG-forward-deployed-engineer-ai-hpc
1•neelm•2h ago

Orchestrating AI code review at scale

https://blog.cloudflare.com/ai-code-review/
69•pramodbiligiri•3d ago•22 comments

Real-time LLM Inference on Standard GPUs: 3k tokens/s per request

https://blog.kog.ai/real-time-llm-inference-on-standard-gpus-3-000-tokens-s-per-request/
99•NicoConstant•4h ago•49 comments

I made a million dollar product from my dorm room (2025)

https://nick.winans.io/blog/nice-nano/
492•mattrighetti•18h ago•74 comments

An Obsessive Focus on UX: Pilot's Pressure-Regulating Kire-Na Highlighter

https://www.core77.com/posts/143832/An-Obsessive-Focus-on-UX-Pilots-Pressure-Regulating-Kire-Na-H...
26•surprisetalk•3d ago•5 comments

We should be more tired than the model

https://vickiboykis.com/2026/05/28/we-should-be-more-tired-than-the-model/
66•tosh•2h ago•68 comments

Let's compile Quake like it's 1997

https://fabiensanglard.net/compile_like_1997/
112•goranmoomin•11h ago•39 comments

Volkswagen blocks Home Assistant by requiring client assertion

https://github.com/robinostlund/homeassistant-volkswagencarnet/issues/967
289•Kwastie•8h ago•143 comments

Even (very) noisy LLM evaluators are useful for improving AI agents

https://www.tensorzero.com/blog/even-very-noisy-llm-evaluators-are-useful-for-improving-ai-agents/
10•GabrielBianconi•2d ago•0 comments

HeidiSQL – Lightweight MariaDB, MySQL, SQL Server, PostgreSQL and SQLite Manager

https://github.com/HeidiSQL/HeidiSQL
76•peter_d_sherman•11h ago•26 comments

Italians and Dutch share the same gestural instinct for teaching

https://www.mpi.nl/news/italians-and-dutch-share-same-gestural-instinct-teaching
95•vi_sextus_vi•11h ago•40 comments

Is AI causing a repeat of Front end's Lost Decade?

https://mastrojs.github.io/blog/2026-05-23-is-AI-causing-a-repeat-of-frontends-lost-decade/
136•xyzal•3h ago•140 comments

Ten Basic Clouds

https://www.noaa.gov/jetstream/clouds/ten-basic-clouds
167•nopg•4d ago•44 comments

Wterm – Terminal Emulator for the Web

https://wterm.dev/
20•m3h•5h ago•2 comments

Poll: How often do you check "newest"?

5•ColinWright•1h ago•2 comments

Cars collect a startling amount of data about you

https://www.bbc.com/future/article/20260513-your-car-is-spying-on-you-its-about-to-get-worse
440•1vuio0pswjnm7•11h ago•231 comments

Nitpicking the shell history scene in 'Tron: Legacy'

https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/tron-legacy/
289•speckx•19h ago•98 comments

Show HN: Continue? Y/N: A 60-second game about AI agent permission fatigue

https://llmgame.scalex.dev
355•Wirbelwind•1d ago•143 comments

Digital Identity Management in Norway Is a Catastrophe

https://www.uio.no/english/research/research-news/articles/2026/digital-id-management-is-a-catast...
50•giuliomagnifico•3h ago•22 comments

Blue Origin rocket explodes on launchpad in a setback

https://www.reuters.com/science/blue-origin-says-it-faced-anomaly-during-hot-fire-test-2026-05-29/
4•onemoresoop•5m ago•0 comments