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.

Switzerland. Block by block. At 1:1 scale

https://blocks.manifold3d.ch/
251•theanonymousone•4h ago•103 comments

Birdwatching rewires the brain and slows cognitive decline

https://www.bbc.com/future/article/20261019-birdwatching-rewires-the-brain-and-slows-cognitive-de...
152•cisc•2d ago•54 comments

Show HN: TitleArt – Make text like it's 1997

https://titleart.dvy.io/
287•davidbarker•9h ago•49 comments

Tasks as Code: Move Your Tickets into the Repository

https://typemill.net/knowledge-hub/tasks-as-code
12•trendschau•1h ago•11 comments

Websites Should Be Printable

https://brennenputh.me/blog/printable-websites/
68•bagatelle•2h ago•54 comments

Behind the scenes at the NeXT Computer office

https://exhibits.stanford.edu/menuez/browse/next-computer-inc?per_page=96&sort=pub_year_isi+asc%2...
162•Austin_Conlon•9h ago•86 comments

PaperPilot – Zero-Cloud, Pure-Rust PDF Engine with WASM and MCP

https://github.com/KrushnaVardhanReddy/PaperPilot
177•vardhan1237•9h ago•66 comments

One of the Greatest Inventions in the History of Human Transport

https://humantransit.org/2024/12/one-of-the-greatest-inventions-in-the-history-of-human-transport...
11•skadamat•3d ago•3 comments

Dolly Parton's Imagination Library

https://imaginationlibrary.com/
583•jumploops•18h ago•98 comments

Show HN: A Truly Modular Keyboard

https://github.com/notaroomba/keybytes
198•NotARoomba•1d ago•67 comments

Growing Trees

https://brashandplucky.com/2026/10/15/growing-trees.html
115•ibobev•2d ago•17 comments

Overgrown, when plants invade your abandoned tabs

https://charliegerard.dev/blog/overgrown-extension/
327•speckx•3d ago•113 comments

Attention Is Not What You Need (2025)

https://arxiv.org/abs/2512.19428
141•westurner•13h ago•48 comments

Superhuman Hardware Design Is the Easy Part

https://www.a16z.news/p/superhuman-hardware-design-is-the
42•gmays•2d ago•27 comments

Iron Age salt-mining complex found beneath Hallstatt in Austria

https://archaeologymag.com/2026/09/iron-age-salt-mining-complex-beneath-hallstatt/
94•janandonly•3d ago•38 comments

Why I Am a Programmer

https://www.alfie.wtf/programming/why-i-am-a-programmer.html
262•jruohonen•17h ago•85 comments

Steal My Bitcoin CTF PoC

https://github.com/KillaBoi/StealMyBitcoin-PoC
138•davikr•12h ago•36 comments

We should be more ambitious with the software we build

https://danluu.com/ambitious/
826•ltratt•1d ago•726 comments

The State of Context Engineering

https://www.dbreunig.com/2026/10/24/the-state-of-context-engineering.html
211•pchristensen•16h ago•52 comments

F-Zero X on Nintendo 3DS

https://hypnotize.works/gdx-3ds/postmortem/index.html
138•bpierre•13h ago•76 comments

Amazon’s “digital pacifier” for toddlers

https://oligarchwatch.substack.com/p/amazons-digital-pacifier-for-toddlers
227•jumploops•4d ago•325 comments

IBM CEO says open weight models are now good and cheap on-prem

https://www.theregister.com/systems/2026/10/22/ibm-ceo-says-open-weight-models-are-now-irresistib...
329•Betelbuddy•11h ago•231 comments

Peter Thiel, the tech oligarch who believes in the Antichrist

https://english.elpais.com/technology/2026-10-25/peter-thiel-the-tech-oligarch-who-believes-in-th...
5•geox•13m ago•0 comments

Two Million Hornets

https://dark-mountain.net/two-million-hornets/
20•promulgate•2d ago•4 comments

Show HN: ADRs for AI – Deliberation records for human–AI work, versioned in Git

https://adrs.systems
54•lumbroso•1d ago•31 comments

A 10-year-old CNN outperforms frontier LLMs for skin cancer diagnosis

https://lynchlab.net/llm-skin-cancer
594•sungam•19h ago•251 comments

Where the Romans Fought (interactive map)

https://iosiflazaridis.github.io/battles-of-the-romans/
122•endorphine•18h ago•49 comments

OpenAI and Anthropic cut their LLM prices by up to 80% within a few months. Why?

https://minimaxir.com/2026/10/cheap-llms/
368•minimaxir•15h ago•357 comments

Writing Is Closer to Thought Than Code

https://danielmiessler.com/blog/writing-is-closer-to-thought-than-code
3•eigenBasis•30m ago•1 comments

Removing Next.js Got My Blog to 100 on Every Lighthouse Category

https://korindiehacker.bloffy.blog/en/removing-nextjs-got-my-blog-to-100-on-every-lighthouse-cate...
169•textlanes33•11h ago•101 comments