frontpage.
newsnewestaskshowjobs

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.

Flux 3 X Mimic: The Next Generation of Video-Action Models

https://bfl.ai/blog/flux-3-mimic
97•kensai•2h ago•8 comments

Flux 3

https://bfl.ai/blog/flux-3
351•ThouYS•5h ago•89 comments

It's getting harder to focus every day

https://glyphack.com/attention/
140•peykar•3h ago•74 comments

Writing by hand is good for your brain

https://nealstephenson.substack.com/p/writing-by-hand-is-good-for-your
1344•dwwoelfel•21h ago•614 comments

Buz – A fork of Bun using modern Zig, with sub-1s incremental builds

https://ziggit.dev/t/buz-a-drop-in-replacement-for-bun-using-modern-zig-with-sub-1s-incremental-b...
28•kristoff_it•2h ago•5 comments

Startup founders urge U.S. government not to shut off Chinese open weight AI

https://www.politico.com/news/2026/07/22/startup-founders-urge-trump-not-to-shut-off-chinese-open...
977•theanonymousone•20h ago•793 comments

Claude Cookbook

https://platform.claude.com/cookbook/
101•saikatsg•6h ago•45 comments

The Beam Engine

https://glinscott.github.io/beam-engine/
414•glinscott•1d ago•80 comments

Show HN: Echo – Fable-level results at 1/3 the cost using open-weight models

397•adam_rida•16h ago•192 comments

Computational chemistry, Locally? My rant on SSH

https://chillphysicsenjoyer.substack.com/p/computational-chemistry-locally
12•crescit_eundo•2d ago•5 comments

The Book Prize Index

https://book-prize-index.vercel.app
15•Luc•3h ago•1 comments

The day Steve Jobs dissed me in a keynote (2010)

https://sive.rs/itunes
86•downbad_•2h ago•19 comments

What happened to TheNumbers.com

https://stephenfollows.com/p/what-just-happened-to-thenumberscom-should-worry-us-all
386•nickthegreek•18h ago•180 comments

AMD's Instinct MI455X: Aiming for the Sun

https://chipsandcheese.com/p/amds-instinct-mi455x-aiming-for-the
23•ingve•4h ago•5 comments

Game of Trees – Git-based version control from OpenBSD folks

https://www.gameoftrees.org/
6•gregnavis•1h ago•0 comments

Why Software Factories Fail (or: harness engineering is not enough)

https://github.com/humanlayer/advanced-context-engineering-for-coding-agents/blob/main/wsff.md
336•dhorthy•20h ago•242 comments

Launching Health in ChatGPT to US Users

https://openai.com/index/health-in-chatgpt/
4•mellosouls•1h ago•0 comments

What else do people draw on gradient.horse?

https://rybakov.com/blog/what_else_do_people_draw_on_gradient-copy.horse/
145•spython•5d ago•27 comments

I regret migrating to Codeberg

https://xn--gckvb8fzb.com/i-regret-migrating-to-codeberg/
357•boramalper•21h ago•253 comments

The PImpl idiom and the C++26 std:indirect type

https://mariusbancila.ro/blog/2026/07/23/the-pimpl-idiom-and-the-cpp26-stdindirect-type/
54•signa11•4h ago•50 comments

Learn OpenGL, extensive tutorial resource for learning Modern OpenGL

https://learnopengl.com/
256•ibobev•20h ago•134 comments

Nothing works and everyone is euphoric

https://ptrchm.com/posts/nothing-works-and-everyone-is-euphoric/
109•pchm•2h ago•100 comments

Hetzner is working on LLM Inference

https://sliplane.io/blog/hetzner-inference
27•jonas_scholz•2h ago•11 comments

Why Sony can't bring back its classic Walkman models

https://obsoletesony.substack.com/p/why-sony-cant-bring-back-classic-walkman
147•speckx•17h ago•159 comments

DARPA, U.S. Air Force fly AI-controlled F-16

https://www.darpa.mil/news/2026/darpa-us-air-force-fly-ai-controlled-f-16
255•r2sk5t•21h ago•285 comments

Software rendering in 500 lines of bare C++

https://haqr.eu/tinyrenderer/
286•mpweiher•21h ago•65 comments

Show HN: Palmier Pro – Open-source macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
170•harrisontin•20h ago•26 comments

98.css

https://jdan.github.io/98.css/#status-bar
486•lopespm•13h ago•110 comments

Quickly rewrite Git repository history

https://github.com/newren/git-filter-repo
52•modinfo•3d ago•4 comments

Projects every RC live races and results

https://rc-replay.dev/lr/vmrc/r/6912053
16•apokly•3d ago•0 comments