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

C++ std::move doesn't move anything: A deep dive into Value Categories

https://0xghost.dev/blog/std-move-deep-dive/
71•signa11•2d ago•20 comments

You are not required to close your <p>, <li>, <img>, or <br> tags in HTML

https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/
37•jen729w•1d ago•38 comments

More than one hundred years of Film Sizes

https://wichm.home.xs4all.nl/filmsize.html
28•exvi•2h ago•2 comments

The Concise TypeScript Book

https://github.com/gibbok/typescript-book
83•javatuts•4h ago•15 comments

Vojtux – Unofficial Linux Distribution Aimed at Visually Impaired Users

https://github.com/vojtapolasek/vojtux
42•TheWiggles•3d ago•7 comments

Show HN: Ferrite – Markdown editor in Rust with native Mermaid diagram rendering

https://github.com/OlaProeis/Ferrite
160•OlaProis•8h ago•74 comments

'Bandersnatch': The Works That Inspired the 'Black Mirror' Interactive Feature (2019)

https://www.hollywoodreporter.com/tv/tv-news/black-mirror-bandersnatch-real-life-works-influences...
35•rafaepta•5d ago•10 comments

Finding and fixing Ghostty's largest memory leak

https://mitchellh.com/writing/ghostty-memory-leak-fix
439•thorel•15h ago•96 comments

Show HN: I used Claude Code to discover connections between 100 books

https://trails.pieterma.es/
354•pmaze•17h ago•93 comments

Show HN: I built an Open Source screen timer for the m5stickc (Arduino)

https://partridge.works/screenie-christmas-project-2025-26/
3•urbandw311er•4d ago•0 comments

Code and Let Live

https://fly.io/blog/code-and-let-live/
334•usrme•1d ago•122 comments

CPU Counters on Apple Silicon: article + tool

https://blog.bugsiki.dev/posts/apple-pmu/
82•verte_zerg•3d ago•0 comments

Open Chaos: A self-evolving open-source project

https://www.openchaos.dev/
375•stefanvdw1•18h ago•78 comments

A Year of Work on the Arch Linux Package Management (ALPM) Project

https://devblog.archlinux.page/2026/a-year-of-work-on-the-alpm-project/
57•susam•8h ago•11 comments

AI is a business model stress test

https://dri.es/ai-is-a-business-model-stress-test
253•amarsahinovic•17h ago•253 comments

A battle over Canada’s mystery brain disease

https://www.bbc.com/news/articles/c623r47d67lo
140•lewww•5h ago•93 comments

An Experimental Approach to Printf in HLSL

https://www.abolishcrlf.org//2025/12/31/Printf.html
27•ibobev•4d ago•2 comments

Overdose deaths are falling in America because of a 'supply shock': study

https://www.economist.com/united-states/2026/01/08/why-overdose-deaths-are-falling-in-america
134•marojejian•14h ago•106 comments

Show HN: Librario, a book metadata API that aggregates G Books, ISBNDB, and more

105•jamesponddotco•10h ago•36 comments

My Home Fibre Network Disintegrated

https://alienchow.dev/post/fibre_disintegration/
145•alienchow•6h ago•124 comments

Show HN: Play poker with LLMs, or watch them play against each other

https://llmholdem.com/
112•projectyang•15h ago•56 comments

Ripple: The Elegant TypeScript UI Framework

https://jsdev.space/meet-ripple/
22•javatuts•6h ago•14 comments

Show HN: VAM Seek – 2D video navigation grid, 15KB, zero server load

https://github.com/unhaya/vam-seek
30•haasiy•7h ago•4 comments

Sisyphus Now Lives in Oh My Claude

https://github.com/Yeachan-Heo/oh-my-claude-sisyphus
29•deckardt•8h ago•17 comments

Visual regression tests for personal blogs

https://marending.dev/notes/visual-testing/
19•beingflo•4d ago•5 comments

ASCII-Driven Development

https://medium.com/@calufa/ascii-driven-development-850f66661351
127•_hfqa•3d ago•81 comments

Show HN: mcpc – Universal command-line client for Model Context Protocol (MCP)

https://github.com/apify/mcp-cli
39•jancurn•4d ago•3 comments

Max Payne – two decades later – Graphics Critique

https://darkcephas.blogspot.com/2021/07/max-payne-two-decades-later-graphics.html
27•davikr•6h ago•9 comments

Code Is Clay

https://campedersen.com/code-is-clay
69•ecto•14h ago•36 comments

Workers at Redmond SpaceX lab exposed to toxic chemicals

https://www.fox13seattle.com/video/fmc-w1ga4pk97gxq0hj5
108•SilverElfin•7h ago•26 comments