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•8mo ago

Comments

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

A 40-line fix eliminated a 400x performance gap

https://questdb.com/blog/jvm-current-thread-user-time/
140•bluestreak•3h ago•27 comments

Every GitHub object has two IDs

https://www.greptile.com/blog/github-ids
103•dakshgupta•10h ago•21 comments

vLLM large scale serving: DeepSeek 2.2k tok/s/h200 with wide-ep

https://blog.vllm.ai/2025/12/17/large-scale-serving.html
41•robertnishihara•10h ago•0 comments

The truth behind the 2026 J.P. Morgan Healthcare Conference

https://www.owlposting.com/p/the-truth-behind-the-2026-jp-morgan
56•abhishaike•8h ago•17 comments

The $LANG Programming Language

80•dang•2h ago•12 comments

ASCII Clouds

https://caidan.dev/portfolio/ascii_clouds/
5•majkinetor•17m ago•2 comments

Are two heads better than one?

https://eieio.games/blog/two-heads-arent-better-than-one/
122•evakhoury•10h ago•28 comments

Why IRC is better than Real Life

https://everything2.com/node/e2node/Why%20IRC%20is%20better%20than%20Real%20Life
8•jskherman•1h ago•3 comments

Sei (YC W22) Is Hiring a DevOps Engineer (India/In-Office/Chennai/Gurgaon)

https://www.ycombinator.com/companies/sei/jobs/Rn0KPXR-devops-platform-ai-infrastructure-engineer
1•ramkumarvenkat•1h ago

No management needed: anti-patterns in early-stage engineering teams

https://www.ablg.io/blog/no-management-needed
85•tonioab•7h ago•122 comments

Japan's Skyscraper Factories (2021)

https://www.construction-physics.com/p/japans-skyscraper-factories
50•Pikamander2•6d ago•1 comments

The Tulip Creative Computer

https://github.com/shorepine/tulipcc
188•apitman•9h ago•39 comments

AI Generated Music Barred from Bandcamp

https://old.reddit.com/r/BandCamp/comments/1qbw8ba/ai_generated_music_on_bandcamp/
601•cdrnsf•8h ago•442 comments

Minor says ICE took his iPhone, later found in used-electronics vending machine

https://www.propublica.org/article/videos-ice-dhs-immigration-agents-using-chokeholds-citizens
42•spenvo•37m ago•8 comments

When hardware goes end-of-life, companies need to open-source the software

https://www.marcia.no/words/eol
177•Marciplan•3h ago•43 comments

We can't have nice things because of AI scrapers

https://blog.metabrainz.org/2025/12/11/we-cant-have-nice-things-because-of-ai-scrapers/
280•LorenDB•4h ago•158 comments

The Emacs Widget Library: A Critique and Case Study

https://www.d12frosted.io/posts/2025-11-26-emacs-widget-library
5•whacked_new•1d ago•0 comments

Show HN: Microwave – Native iOS app for videos on ATproto

https://testflight.apple.com/join/cVxV1W3g
11•sinned•9h ago•1 comments

Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

https://marketplace.visualstudio.com/items?itemName=Nogic.nogic
79•davelradindra•7h ago•35 comments

How to make a damn website (2024)

https://lmnt.me/blog/how-to-make-a-damn-website.html
146•birdculture•9h ago•48 comments

Scott Adams has died

https://www.youtube.com/watch?v=Rs_JrOIo3SE
772•ekianjo•11h ago•1257 comments

Show HN: AsciiSketch a free browser-based ASCII art and diagram editor

https://files.littlebird.com.au/ascii-sketch.html
21•schappim•3h ago•4 comments

My first paper: A practical implementation of Rubiks cube based passkeys

https://ieeexplore.ieee.org/document/11280260
50•acorn221•6d ago•19 comments

A deep dive on agent sandboxes

https://pierce.dev/notes/a-deep-dive-on-agent-sandboxes
33•icyfox•1d ago•9 comments

A university got itself banned from the Linux kernel (2021)

https://www.theverge.com/2021/4/30/22410164/linux-kernel-university-of-minnesota-banned-open-source
63•italophil•7h ago•42 comments

Is it a joke?

https://novalis.org/blog/2025-11-06-is-it-a-joke.html
20•luu•4h ago•3 comments

Let's be honest, Generative AI isn't going all that well

https://garymarcus.substack.com/p/lets-be-honest-generative-ai-isnt
125•7777777phil•8h ago•129 comments

Inlining – The Ultimate Optimisation

https://xania.org/202512/17-inlining-the-ultimate-optimisation
48•PaulHoule•4d ago•18 comments

Terra - A rolling-release Fedora repository

https://terra.fyralabs.com/
14•doodlesdev•4h ago•5 comments

Influencers and OnlyFans models are dominating U.S. O-1 visa requests

https://www.theguardian.com/us-news/2026/jan/11/onlyfans-influencers-us-o-1-visa
352•bookofjoe•9h ago•254 comments