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.

The Internals of PostgreSQL

https://www.interdb.jp/pg/index.html
106•ibobev•4h ago•2 comments

Stringman, an $800 open-source room scale gripper robot

https://neufangled.com/
384•nharada•9h ago•144 comments

Jailbreaking my car's navigation system just so I can change the time

https://blog.nns.ee/2026/11/02/renault-hack/
615•xx_ns•1d ago•248 comments

Safari introduces Adaptive Dark Mode in 27.3

https://webkit.org/blog/18541/introducing-adaptive-dark-mode/
289•paddingtone•4h ago•186 comments

Show HN: HackerTV – HN's most-recommended Youtube videos as 24/7 TV channels

https://hackertv.org
171•dsalzman•1d ago•36 comments

Japan's Jimi 'Mundane' Halloween Costumes of 2026

https://spoon-tamago.com/japan-jimi-mundane-halloween-costumes-2026/
107•zdw•1d ago•19 comments

Qwen 3.8 27B on my laptop can interpret model weights, too

https://simonwillison.net/2026/Nov/3/qwen-can-interpret-model-weights/
492•theanonymousone•8h ago•152 comments

The Little Book of Generative AI Foundations: An Intuitive Mathematical Primer

https://arxiv.org/abs/2605.29713
228•ibobev•4h ago•36 comments

Fujifilm to boost tape production 5x as AI fuels archiving demand

https://arstechnica.com/gadgets/2026/10/fujifilm-to-boost-tape-production-5x-as-ai-fuels-archivin...
379•bookofjoe•1d ago•165 comments

Show HN: Kairos – Open-source risk and fraud decisioning platform

https://github.com/finic-ai/kairos
60•ayanb9440•4h ago•7 comments

Postman silently auto-installs AI plugins and attempts to share all API data

https://github.com/postmanlabs/postman-app-support/issues/14370
1027•sidgarimella•8h ago•343 comments

There is no posttraining data commons

https://openathena.ai/blog/there-is-no-posttraining-data-commons/
28•lukasschwab•11h ago•5 comments

We're Training a Figma-Fluent Editing Model

https://www.figma.com/blog/training-a-figma-fluent-editing-model/
71•gmays•2d ago•35 comments

macOS 27 does not support CoreStorage volumes

https://wadetregaskis.com/macos-27-golden-gate-does-not-actually-support-corestorage-or-hfs-volumes/
113•colejohnson66•6h ago•69 comments

Introduction to Programming in ATS

https://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/HTML/book1.html
57•ibobev•6h ago•7 comments

US tech giants' hidden AI debt swells 90% to $3.2T in 6 months

https://asia.nikkei.com/business/technology/artificial-intelligence/us-tech-giants-hidden-ai-debt...
237•angry_impala•4h ago•105 comments

Curiosity Traps

https://www.autodidacts.io/curiosity-traps/
41•surprisetalk•1d ago•3 comments

Could a modern chess engine on a Pentium have defeated Kasparov in 1996?

https://nicholas.carlini.com/writing/2026/algorithmic-improvements-chess.html
450•markusw•17h ago•214 comments

How I use AI (Oct 2026)

https://ben.stolovitz.com/posts/how-use-ai-oct-2026/
82•citelao•7h ago•77 comments

Union Types and Option Types (2025)

https://tibleiz.net/blog/2025-03-16-union-types-and-option-types.html
20•g0xA52A2A•1d ago•8 comments

Killing what can't be handled – putting a spaghetti demon to eternal rest

https://themaister.net/blog/2026/10/29/killing-what-cant-be-handled-putting-a-spaghetti-demon-to-...
34•ibobev•1d ago•4 comments

The 'Astra can read and write weights to improve Qwen' post is misleading

https://honnibal.dev/blog/astra-read-write-misleading
909•syllogism•13h ago•191 comments

Pratt parsing is a black box

https://vinipsmaker.github.io/blog/article/pratt-parsing-is-a-black-box/
38•ibobev•5h ago•17 comments

Ashby (YC W19) Is Hiring EMs

https://www.ashbyhq.com/careers?ashby_jid=695b1ce6-c375-4fad-94ef-61b50a3fbd28&utm_source=hn
1•abhikp•8h ago

Writing seen in PHerc. 306B, for the first time in 2000 years

https://scrollprize.substack.com/p/writing-seen-in-pherc-306b-for-the
116•benbreen•1d ago•15 comments

Preparing for the Flipper One Kickstarter and opening pre-orders

https://flipper.net/pages/flipper-one
170•user_7832•6h ago•79 comments

Mac at Any Scale

https://namespace.so/blog/mac-at-any-scale
316•anner_•10h ago•185 comments

Antimony: CAD Software Evolved from Lisp Machines and Not Drafting Tables (2015)

https://www.mattkeeter.com/projects/antimony/3/
104•pmkary•1d ago•57 comments

Practice speaking Japanese with real YouTube videos, graded line by line

https://jivx.com/yt
87•momentmaker•11h ago•31 comments

USDB: Scaling Storage for Next-Generation Recommender Systems at ByteDance

https://arxiv.org/abs/2611.02618
47•1equalsequals1•9h ago•7 comments