frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Fixrleak: Fixing Java Resource Leaks with GenAI

https://www.uber.com/blog/fixrleak-fixing-java-resource-leaks-with-genai/
17•carimura•1mo ago

Comments

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

Apple vs the Law

https://formularsumo.co.uk/blog/2025/apple-vs-the-law/
170•tempodox•3h ago•118 comments

OpenFront: Realtime Risk-like multiplayer game in the browser

https://openfront.io/
56•thombles•3h ago•18 comments

Show HN: Pangolin – Open source alternative to Cloudflare Tunnels

https://github.com/fosrl/pangolin
258•miloschwartz•12h ago•51 comments

Postgres LISTEN/NOTIFY does not scale

https://www.recall.ai/blog/postgres-listen-notify-does-not-scale
444•davidgu•3d ago•187 comments

Batch Mode in the Gemini API: Process More for Less

https://developers.googleblog.com/en/scale-your-ai-workloads-batch-mode-gemini-api/
105•xnx•3d ago•32 comments

LLM Inference Handbook

https://bentoml.com/llm/
81•djhu9•7h ago•3 comments

The ChompSaw: A Benchtop Power Tool That's Safe for Kids to Use

https://www.core77.com/posts/137602/The-ChompSaw-A-Benchtop-Power-Tool-Thats-Safe-for-Kids-to-Use
176•surprisetalk•3d ago•103 comments

Woman takes 10x dose of turmeric, gets hospitalized for liver damage

https://arstechnica.com/health/2025/07/woman-takes-10x-dose-of-turmeric-gets-hospitalized-for-liver-damage/
24•burnt-resistor•1h ago•38 comments

Btrfs Allocator Hints

https://lwn.net/ml/all/cover.1747070147.git.anand.jain@oracle.com/
15•forza_user•1d ago•3 comments

What is Realtalk’s relationship to AI? (2024)

https://dynamicland.org/2024/FAQ/#What_is_Realtalks_relationship_to_AI
254•prathyvsh•18h ago•84 comments

Show HN: Interactive pinout for the Raspberry Pi Pico 2

https://pico2.pinout.xyz
53•gadgetoid•3d ago•9 comments

Series of posts on HTTP status codes (2018)

https://evertpot.com/http/
42•antonalekseev•2d ago•7 comments

An almost catastrophic OpenZFS bug and the humans that made it

https://despairlabs.com/blog/posts/2025-07-10-an-openzfs-bug-and-the-humans-that-made-it/
19•r4um•3h ago•19 comments

Flix – A powerful effect-oriented programming language

https://flix.dev/
279•freilanzer•20h ago•131 comments

The Wet History of Media in the Bathroom

https://thereader.mitpress.mit.edu/the-wet-history-of-media-in-the-bathroom/
6•zdw•3d ago•0 comments

FOKS: Federated Open Key Service

https://foks.pub/
233•ubj•21h ago•51 comments

Underwater turbine spinning for 6 years off Scotland's coast is a breakthrough

https://apnews.com/article/tidal-energy-turbine-marine-meygen-scotland-ffff3a7082205b33b612a1417e1ec6d6
188•djoldman•19h ago•163 comments

Operational Apple-1 Computer for sale [video]

https://www.youtube.com/watch?v=XdBKuBhdZwg
55•guiambros•2d ago•18 comments

Show HN: Cactus – Ollama for Smartphones

https://github.com/cactus-compute/cactus
149•HenryNdubuaku•14h ago•61 comments

Graphical Linear Algebra

https://graphicallinearalgebra.net/
247•hyperbrainer•18h ago•19 comments

Show HN: I built a playground to showcase what Flux Kontext is good at

https://fluxkontextlab.com
58•Zephyrion•1d ago•14 comments

Red Hat Technical Writing Style Guide

https://stylepedia.net/style/
210•jumpocelot•19h ago•90 comments

Million Times Million

https://susam.net/million-times-million.html
78•susam•1d ago•74 comments

Grok: Searching X for "From:Elonmusk (Israel or Palestine or Hamas or Gaza)"

https://simonwillison.net/2025/Jul/11/grok-musk/
363•simonw•9h ago•221 comments

Show HN: Open source alternative to Perplexity Comet

https://www.browseros.com/
222•felarof•16h ago•84 comments

Orwell Diaries 1938-1942

https://orwelldiaries.wordpress.com/page/2/
108•bookofjoe•16h ago•62 comments

Analyzing database trends through 1.8M Hacker News headlines

https://camelai.com/blog/hn-database-hype/
149•vercantez•3d ago•79 comments

Diffsitter – A Tree-sitter based AST difftool to get meaningful semantic diffs

https://github.com/afnanenayet/diffsitter
127•mihau•21h ago•31 comments

Measuring the impact of AI on experienced open-source developer productivity

https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/
624•dheerajvs•17h ago•406 comments

eBPF: Connecting with Container Runtimes

https://h0x0er.github.io/blog/2025/06/29/ebpf-connecting-with-container-runtimes/
58•forxtrot•14h ago•7 comments