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.

Incident with Github.com

https://www.githubstatus.com/incidents/zkxwbgr0cnmx
148•kevcampb•17m ago•79 comments

GPT 5.6 Sol is the best "vision" model OpenAI ever released

https://blog.roboflow.com/openai-gpt-5-6/
74•plurby•1h ago•46 comments

Show HN: 1667, a terminal UI for writing fiction with language models

https://1667.ai/
14•refsab•23m ago•14 comments

Show HN: Sokoban AI Solver

https://mkornreich.me/projects/sokoban/
13•enjoyyourlife•51m ago•4 comments

Tell HN: GitHub Is Experiencing Degraded Performance

45•SpyCoder77•23m ago•13 comments

GitHub down again? no PR access

30•yodon•21m ago•9 comments

Qwen 3.8 27B is excellent, but it defaults to overthinking things

https://simonwillison.net/2026/Aug/16/qwen-38-27b/
638•bilsbie•14h ago•303 comments

Mexico Crackdown on Coastal Development Underway

https://yucatanmagazine.com/mexico-crackdown-on-coastal-development/
33•untiledsource•1h ago•4 comments

How Go detects struct copies with sync.noCopy

https://func25.dev/posts/go-sync-nocopy/
22•func25•4d ago•22 comments

On A.I. regulation and messaging

https://twitter.com/DarioAmodei/status/2088758816376807762
154•jacquesm•11h ago•296 comments

Anthropic's 'watermark' text adulteration in Claude is a perversion of writing

https://daringfireball.net/2026/08/anthropics_watermark_text_adulteration_in_claude_is_a_perversi...
486•ropbear•16h ago•447 comments

Show HN: Desktopcolors.com – A museum for solid background colors of classic OS

https://desktopcolors.com
63•vlowrian•6h ago•29 comments

Stripe to Buy OpenRouter for $7B

https://www.bloomberg.com/news/articles/2026-08-16/stripe-nears-deal-to-buy-ai-firm-openrouter-fo...
31•FinnLobsien•57m ago•12 comments

A third world engineer responds to “RISC-V: They should have known better”

https://rvembedded.com/blog_post/12/
567•Narishma•20h ago•288 comments

The Mysterious Syndrome Destroying Endurance Athletes

https://www.outsideonline.com/health/training-performance/running-empty/
53•cwwc•2d ago•35 comments

Reticulum – Decentralized Mesh Network

https://reticulum.network/
168•sudo_cowsay•13h ago•58 comments

Claude: System Prompts

https://platform.claude.com/docs/en/release-notes/system-prompts
709•tosh•1d ago•270 comments

Linear algebra done right

https://linear.axler.net/
142•the-mitr•8h ago•56 comments

My Ten Years in No Man's Sky

https://nmsspot.com/2026/08/09/my-ten-years-in-no-mans-sky/
3•blakespot•4d ago•1 comments

AGI-64 Brings Sierra Adventures to the Commodore 64

https://meanhamster.com/news/agi-64-brings-sierra-adventures-to-the-commodore-64
109•erickhill•12h ago•15 comments

Cialis is an erectile dysfunction drug. Could it also help you live longer?

https://www.npr.org/2026/08/17/nx-s1-5928263/cialis-viagra-tadalafil-longevity-heart-health
10•brandonb•33m ago•2 comments

Pi coding agent: config folder is out of place on Linux

https://github.com/earendil-works/pi/issues/534
17•joooscha•4h ago•5 comments

Build a Stratum 1 PTP Grandmaster on a Budget

https://opscode.io/posts/ptp-grandmaster-cm4-sr1723u10/
32•malcolmfrazier•3d ago•8 comments

Who Owns Commodore? The Retro PC Brand Still Exists, but a Lot Has Changed

https://www.bgr.com/2233625/who-owns-commodore-retro-brand/
16•theanonymousone•2h ago•0 comments

How do I permanently disable random Google Photos popup to backup photos? (2024)

https://support.google.com/photos/thread/256212140/how-do-i-permanently-disable-google-photos-pop...
173•dt3ft•3d ago•119 comments

Rhombus 1.1 is now available

https://blog.racket-lang.org/2026/08/rhombus-v1.1.html
101•spdegabrielle•13h ago•30 comments

Gakutensoku

https://en.wikipedia.org/wiki/Gakutensoku
51•benbreen•3d ago•9 comments

SIMD in the 90s: Programming Intel's Pentium MMX

https://pikuma.com/blog/programming-intel-pentium-mmx-simd
132•ibobev•4d ago•58 comments

Applying a photosynthetic process to treat “dry eye”

https://www.science.org/content/blog-post/taking-tip-plants-eyes
60•gumby•13h ago•20 comments

David Sacks on X: Some thoughts on Dario's post

https://twitter.com/DavidSacks/status/2089227290769080656
37•bilsbie•1h ago•21 comments