frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Anthropic acquires Stainless

https://www.anthropic.com/news/anthropic-acquires-stainless
240•tomeraberbach•3h ago•175 comments

Hyperpolyglot Lisp: Common Lisp, Racket, Clojure, Emacs Lisp

https://hyperpolyglot.org/lisp
51•veqq•1h ago•5 comments

We stopped AI bot spam in our GitHub repo using Git's –author flag

https://archestra.ai/blog/only-responsible-ai
328•ildari•5h ago•159 comments

We let AIs run radio stations

https://andonlabs.com/blog/andon-fm
52•lukaspetersson•2h ago•50 comments

Elon Musk has lost his lawsuit against Sam Altman and OpenAI

https://techcrunch.com/2026/05/18/elon-musk-has-lost-his-lawsuit-against-sam-altman-and-openai/
534•nycdatasci•3h ago•262 comments

Show HN: Files.md – Open-source alternative to Obsidian

https://github.com/zakirullin/files.md
438•zakirullin•7h ago•235 comments

The Quiet Renovation at Bitwarden

https://blog.ppb1701.com/the-quiet-renovation-at-bitwarden
383•DaSHacka•2d ago•174 comments

Agora-1: The Multi-Agent World Model

https://odyssey.ml/introducing-agora-1
39•olivercameron•2h ago•9 comments

The FBI Wants to Buy Nationwide Access to License Plate Readers

https://www.404media.co/the-fbi-wants-to-buy-nationwide-access-to-license-plate-readers/
70•cdrnsf•1h ago•21 comments

Show HN: We missed Winamp, so we built an audio player for macOS

https://www.advanced-research.net/180db
23•surganov•1h ago•13 comments

Cutting inference cold starts by 40x with LP, FUSE, C/R, and CUDA-checkpoint

https://modal.com/blog/truly-serverless-gpus
44•charles_irl•2h ago•10 comments

The Fil-C Optimized Calling Convention

https://fil-c.org/calling_convention
66•pizlonator•2d ago•9 comments

Haiku OS runs on M1 Macs now

https://discuss.haiku-os.org/t/my-haiku-arm64-progress/19044?page=2
199•tekkertje•2h ago•63 comments

Iran starts Bitcoin-backed ship insurance for Hormuz strait

https://www.bloomberg.com/news/articles/2026-05-18/iran-starts-bitcoin-backed-shipping-insurance-...
155•srameshc•3h ago•216 comments

Two computers, one monitor, zero fiddling (2025)

https://alexplescan.com/posts/2025/08/16/kvm/
114•ankitg12•2d ago•70 comments

Project Glasswing: what Mythos showed us

https://blog.cloudflare.com/cyber-frontier-models/
223•Fysi•7h ago•88 comments

What Is Date:Italy?

http://aesthetikx.info/blog/date_italy.html
98•jollyjerry•2d ago•41 comments

Understanding Singleflight in Go

https://www.codingexplorations.com/blog/understanding-singleflight-in-golang-a-solution-for-elimi...
7•ghostbit•1d ago•0 comments

Voice AI Systems Are Vulnerable to Hidden Audio Attacks

https://spectrum.ieee.org/voice-ai-audio-attacks
96•SVI•9h ago•26 comments

Shutterstock to pay $35M over hard-to-cancel subscriptions

https://www.ftc.gov/news-events/news/press-releases/2026/05/shutterstock-pay-35-million-settle-ft...
26•Lihh27•1h ago•4 comments

Stratum: System-Hardware Co-Design with 3D-Stackable DRAM for Efficient Moe

https://dl.acm.org/doi/10.1145/3725843.3756043
10•rbanffy•3d ago•4 comments

I 3D Printed Origami [video]

https://www.youtube.com/watch?v=FNVBK7-h9Fs
36•Teever•2d ago•5 comments

loopmaster – Livecoding Music IDE

https://loopmaster.xyz/
10•stagas•2h ago•4 comments

Learn Harness Engineering

https://walkinglabs.github.io/learn-harness-engineering/en/
92•redbell•8h ago•9 comments

Qwen 3.7 Preview

https://twitter.com/Alibaba_Qwen/status/2056403591464984753
158•theanonymousone•4h ago•54 comments

Mocked by a scandal sheet, Kierkegaard endured months of personal attacks

https://www.plough.com/en/topics/faith/discipleship/when-kierkegaard-got-cancelled
72•bookofjoe•8h ago•37 comments

The Aperiodic Table

https://blog.jgc.org/2026/05/the-aperiodic-table.html
70•jgrahamc•3d ago•30 comments

Garry Tan, the CEO of YC, accused me of unethical reporting

https://radleybalko.substack.com/p/truth-power-and-honest-journalism
360•gok•5h ago•76 comments

It is time to give up the dualism introduced by the debate on consciousness

https://www.noemamag.com/there-is-no-hard-problem-of-consciousness/
264•ahalbert4•17h ago•651 comments

Haiku OS runs on M1 Macs now

https://www.osnews.com/story/144985/haiku-os-runs-on-m1-macs-now/
43•speckx•2h ago•6 comments