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.

Global Glacier Extinction Explorer

https://glacierextinction.com
57•guillego•1h ago•11 comments

Godot and Rust based multiplexer (terminal panes and more)

https://github.com/godot-pty/gpty
25•1nv1n•58m ago•15 comments

Logo Programming Language

https://el.media.mit.edu/logo-foundation/what_is_logo/logo_programming.html
114•azhenley•2d ago•57 comments

I've operated petabyte-scale ClickHouse clusters for 5 years

https://www.tinybird.co/blog/what-i-learned-operating-clickhouse
71•adastral•3d ago•24 comments

Copying login keychains between Macs fails on Secure Enclave Macs with Tahoe

https://derflounder.wordpress.com/2026/09/08/manually-copying-login-keychain-files-from-one-mac-t...
27•zdw•18h ago•13 comments

Zep AI (YC W24) Is Hiring a Head of Forward Deployed Engineering

https://www.getzep.com/careers/
1•roseway4•1m ago

So you want to use OpenRouter?

https://mmoustafa.com/blog/so-you-want-to-use-openrouter/
513•player85•2d ago•135 comments

Matt Mullenweg tells Automattic staff in Slack he's back in control after ouster

https://techcrunch.com/2026/09/11/matt-mullenweg-tells-automattic-staff-in-slack-hes-back-in-cont...
87•mkeeter•1h ago•57 comments

HuggingFace: Security.txt

https://huggingface.co/security.txt
127•yarapavan•2h ago•23 comments

118M Queries per Second on Neki

https://planetscale.com/blog/118-million-queries-per-second-on-neki
8•joshmgross•1h ago•5 comments

RTK reports token savings, but our cost benchmarks disagree

https://quesma.com/blog/does-rtk-make-ai-coding-cheaper/
101•michalwarda•5h ago•56 comments

Claude is only available to people over 18 years

https://support.claude.com/en/articles/15171100-age-assurance-on-claude
345•Muhammad523•6h ago•415 comments

Re-Engineering YouTube for the Living Room: Bringing "Chrobalt" to RDK

https://www.collabora.com/news-and-blog/news-and-events/re-engineering-youtube-for-the-living-roo...
24•losgehts•3h ago•11 comments

Cherenkov Radiation - traveling faster than light

http://www.iaea.org/newscenter/news/what-is-cherenkov-radiation
176•andsoitis•8h ago•85 comments

Don't let anyone take away your big box of cables

https://blog.jim-nielsen.com/2026/hands-off-my-cables/
720•Brajeshwar•1d ago•432 comments

Copper lined vest to help penguins with recovery

https://apnews.com/article/chile-el-nino-humboldt-penguins-vulnerable-injuries-rehabilitation-6e9...
13•ninju•2d ago•3 comments

Show HN: Hacker News, without AI

https://hcker.news/?ai=exclude
104•postalcoder•2h ago•58 comments

iPod Classic 6G in QEMU

https://www.reddit.com/r/emulation/s/VL4Au2HGxq
112•dmonterocrespo•3d ago•22 comments

New York thoracic surgeon: "For many patients 9/11 is not over"

https://www.statnews.com/2026/09/11/sept-11-25th-anniversary-ground-zero-exposure-cancer-moment-o...
58•EA-3167•2h ago•19 comments

Show HN: Clawfight.ai MCP-driven agentic game play

https://clawfight.ai/agents.md
7•wesleyhales•3h ago•5 comments

OpenAI Agents API

https://developers.openai.com/api/docs/guides/agents-api/overview
325•aquir•21h ago•168 comments

Working with Git Worktrees in Magit

https://emacsredux.com/blog/2026/09/02/working-with-git-worktrees-in-magit/
103•srijan4•3d ago•41 comments

Mexican student creates an acoustic fire extinguisher to put out fire in seconds

https://www.upsocl.com/en/16-year-old-mexican-student-creates-an-acoustic-fire-extinguisher-that-...
363•rguiscard•16h ago•112 comments

RISC-V Emulator and Linux System from Scratch

https://github.com/WerWolv/riscv-emulator
39•Bluestein•3d ago•2 comments

Houthis 'take control' of key island in global shipping route

https://www.bbc.com/news/live/cmd683p01eljt
271•consumer451•3h ago•410 comments

An interactive tour of the spanning tree protocol

https://vincent.bernat.ch/en/blog/2026-spanning-tree
68•zdw•3d ago•8 comments

Hacker News with reduced priority for AI driven content

https://sprinklz.io/public/pdwt4dve5uai
54•sammy0910•1h ago•35 comments

Technique for Manipulating Satellite Photos Now Reveals Ancient Images (2025)

https://spinoff.nasa.gov/Manipulating_Satellite_Photos_Now_Reveals_Ancient_Images
365•gumby•1d ago•62 comments

Shopify is moving from React Native back to Swift and Kotlin

https://shopify.engineering/back-to-native
1203•fnthawar2•1d ago•897 comments

CSS Curiosities of the Past

https://vale.rocks/posts/css-relics
69•robin_reala•9h ago•46 comments