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.

Iroh 1.0

https://www.iroh.computer/blog/v1
632•chadfowler•4h ago•209 comments

TinyWind: A pixel pirate sailing game with real wind physics (380k+ kms sailed)

https://tinywind.io
303•tinywind•3h ago•56 comments

Typst 0.15.0

https://typst.app/docs/changelog/0.15.0/
112•schu•2h ago•19 comments

Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?

264•cloudking•4h ago•170 comments

My Homelab AI Dev Platform

https://rsgm.dev/post/ai-dev-platform/
134•rsgm•4h ago•32 comments

How TimescaleDB compresses time-series data

https://roszigit.com/en/blog/timescaledb-compression-hypercore
54•lkanwoqwp•1h ago•6 comments

Game Engine White Papers Commander Keen

https://forgottenbytes.net/commander_keen.html
41•mfiguiere•1h ago•7 comments

Hetzner Price Adjustment

https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/#cloud-servers
173•tuhtah•6h ago•280 comments

Making glass-to-metal seals for home­made vacuum tubes

https://maurycyz.com/projects/glass/1/
90•zdw•1d ago•26 comments

Show HN: Fata – Spaced repetition to fight skill rot from AI coding

https://fata.dev
32•djoume•4d ago•15 comments

Factoring "short-sleeve" RSA keys with polynomials

https://blog.trailofbits.com/2026/06/12/factoring-short-sleeve-rsa-keys-with-polynomials/
12•ledoge•3d ago•0 comments

Launch HN: Drafted (YC P26) – Models for residential architecture

27•PrimalNick•2h ago•25 comments

Fox to buy Roku

https://www.wsj.com/business/deals/fox-roku-deal-f6e564f9
188•thm•6h ago•259 comments

Boot Naked Linux

https://nick.zoic.org/art/boot-naked-linux/
43•abnercoimbre•3h ago•18 comments

Copper transport drug restores memory and clears toxic Alzheimer's proteins

https://www.monash.edu/news/articles/copper-drug-restores-memory-and-clears-toxic-alzheimers-prot...
170•bookofjoe•4h ago•66 comments

Claude Corps

https://www.anthropic.com/news/claude-corps
24•Mustan•1h ago•13 comments

Around 200 Stanford students walk out as Google CEO takes stage

https://www.sfgate.com/tech/article/sundar-pichai-stanford-commencement-22304888.php
41•pera•54m ago•2 comments

Your ePub Is fine

https://andreklein.net/your-epub-is-fine-kobo-disagrees-blame-adobe/
846•sohkamyung•20h ago•286 comments

Apple Foundation Models

https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/apple-foundation-models
424•MehrdadKhnzd•14h ago•199 comments

CrankGPT

https://crankgpt.com
487•rishikeshs•6h ago•197 comments

Show HN: machine0 – Persistent NixOS VMs You Control from the CLI

https://machine0.io
46•bwm•3h ago•16 comments

Can Europe train a frontier AI model on the compute it owns?

https://github.com/sammysltd/euromesh
75•smashini•5h ago•87 comments

The Alaska Server

https://serialport.org/blog/the-alaska-server/
7•speckx•50m ago•2 comments

Openrouter Fusion API

https://openrouter.ai/openrouter/fusion
178•tdchaitanya•12h ago•69 comments

Teenagers Stayed Overnight at Their School and Found Hidden Ancient Roman Ruins

https://www.smithsonianmag.com/smart-news/these-italian-teenagers-stayed-overnight-at-their-schoo...
148•thunderbong•4d ago•73 comments

Even more batteries included with Emacs

https://karthinks.com/software/even-more-batteries-included-with-emacs/
330•signa11•16h ago•119 comments

Show HN: Exploiting Slack's video embeds to achieve E2EE communication

https://v1c.rocks/log/exploiting-slack-video/
20•victorio•3h ago•2 comments

Improvement in advanced Alzheimer’s disease following high-dose psilocybin

https://www.frontiersin.org/journals/neuroscience/articles/10.3389/fnins.2026.1813281/full
166•cl3misch•12h ago•120 comments

Memory safety CVEs differ between Rust and C/C++

https://kobzol.github.io/rust/2026/06/15/how-memory-safety-cves-differ-between-rust-and-c-cpp.html
62•nicoburns•3h ago•52 comments

Dalus (YC W25) Is Hiring a Senior Software Engineer in Germany

https://www.ycombinator.com/companies/dalus/jobs/5IDmKJt-senior-software-frontend-engineer-german...
1•sebastianvoelkl•12h ago