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.

AI Is a Tool. Using It Well Takes Skill.

https://yyhh.org/blog/2026/10/ai-is-a-tool/
125•layer8•1h ago•108 comments

GLM-Legal

https://z.ai/blog/glm-legal
380•ilreb•6h ago•217 comments

Who Is Vfmaddrnd231pd?

https://purplesyringa.moe/blog/who-is-vfmaddrnd231pd/
42•pngmangi•1h ago•0 comments

A Modern Web App in C

https://prophitt.me/writing/a-modern-web-app-in-c
341•prophittcorey•6h ago•150 comments

Phreak.ing – Internet Phone Switch

https://phreak.ing/
30•rickcarlino•1h ago•1 comments

Hackers activate automatic defrosting in supermarket fridges across Europe

https://www.tomshardware.com/tech-industry/cyber-security/unprecedented-cyberattack-cripples-supe...
355•Zeekaas•10h ago•580 comments

Writing a Demoscene Intro for the ZX Spectrum

https://www.markround.com/blog/2026/zx-spectrum-intro
51•zdw•3h ago•6 comments

Making big downloads resumable in Firefox

https://lunarwatcher.codeberg.page/til/firefox/resumable-big-downloads.html
42•speckx•3h ago•5 comments

Launch HN: Agent37 (YC F26) – Low-cost agent sandboxes for running agents

78•vishnukool•6h ago•57 comments

Codex CLI installs a persistent, self-updating background daemon by default

https://github.com/openai/codex/issues/48195
399•whimblepop•4h ago•217 comments

Turn a WiFi 7 Router into a 320Msps Software Defined Radio Receiver

https://github.com/h0m3us3r/w1700k-sdr
229•djfergus•10h ago•56 comments

Citroen revives the 2CV for an electric age

https://www.bbc.com/news/articles/c620r33plgppo
236•scrlk•10h ago•284 comments

Muse Wonder

https://research.meta.ai/blog/muse-wonder
484•meetpateltech•6h ago•257 comments

The Making Of Super Mario 64 – full Giles Goddard interview (2001)

https://pixelatron.com/blog/the-making-of-super-mario-64-full-giles-goddard-interview-ngc/
208•gregsadetsky•2d ago•80 comments

Secret of Orange Cats Revealed After 60-Year Search

https://www.sciencealert.com/secret-of-orange-cats-finally-revealed-after-60-year-search
215•bookofjoe•2d ago•170 comments

Show HN: Brickbrag – A multiplayer brick-building world in the browser

https://brickbrag.com/
12•neuling•2h ago•5 comments

Breaking Bad star RJ Mitte dies aged 34

https://news.sky.com/story/breaking-bad-star-rj-mitte-dies-aged-34-13598332
29•austinallegro•48m ago•2 comments

Kevin Kelly's 2016 AI Predictions, 10 Years Later

https://taylor.town/kk-ai-2026
110•surprisetalk•7h ago•34 comments

Solar panels that plug into your wall

https://www.nationalgeographic.com/environment/article/balcony-plug-in-solar-panels-renewable-energy
81•speckx•8h ago•69 comments

AI coding agents generate more code, but not more software

https://arstechnica.com/ai/2026/10/ai-coding-agents-generate-more-code-but-not-more-software/
284•gumby•5h ago•239 comments

Show HN: PS2 games statically recompiled to WebAssembly

https://github.com/snuri00/ps2-web-recomp
257•deadxwarrior•16h ago•138 comments

Thinking will become a hobby

https://www.spinellis.gr/blog/20261008/?li261008
195•pranitha_m•6h ago•255 comments

Publishers Killed the Paperback, Then Blamed Readers

https://jacobin.com/2026/10/books-publishing-reading-mass-market-paperback
87•PaulHoule•4h ago•63 comments

America's Longest Highway Tunnel (2025)

https://www.thetravel.com/americas-longest-highway-tunnel-not-for-faint-of-heart/
6•NaOH•1d ago•4 comments

Show HN: Atticus – Hold-to-talk voice assistant for macOS that runs on Claude -p

https://github.com/SaarthurR/atticus-mac
48•SaarthRanka•22h ago•5 comments

'AI' Is Not a Tool by Rich Hickey

https://www.linkedin.com/pulse/ai-tool-rich-hickey-kjl8e
145•svieira•5h ago•72 comments

Type-safe HTML templating in Zig

https://lalinsky.com/2026/10/11/type-safe-html-templating-in-zig.html
232•lukaslalinsky•18h ago•82 comments

My Reddit AMA on the Law of Web Scraping

https://blog.ericgoldman.org/archives/2026/10/my-reddit-ama-on-the-law-of-web-scraping.htm
72•speckx•5h ago•11 comments

No portable way to detect string-to-float conversion errors in standard C

https://sebsite.pw/w/20261009-strtod.html
62•signa11•2d ago•80 comments

QGIS enacts moratorium on AI contributions

https://github.com/qgis/QGIS-Enhancement-Proposals/pull/387
359•bwnkl•11h ago•391 comments