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.

Did They Ghost You?

https://didtheyghostyou.com/
208•mooreds•3h ago•81 comments

The new rules of context engineering for Claude 5 generation models

https://claude.com/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models
123•mellosouls•3h ago•73 comments

Stolen Buttons

https://anatolyzenkov.com/stolen-buttons
525•Gecko4072•5d ago•123 comments

GM Backs Sodium Ion Batteries for U.S. Grid Storage

https://spectrum.ieee.org/sodium-ion-battery-peak-energy
89•rbanffy•2h ago•26 comments

What is happening to jobs? Separating AI hype from reality

https://siepr.stanford.edu/publications/policy-brief/what-really-happening-jobs-separating-ai-hyp...
20•pod_krad•1h ago•10 comments

SIMD for Collision

https://box2d.org/posts/2026/07/simd-for-collision/
33•birdculture•3d ago•6 comments

Producing ammonia and fertiliser using wind power in Morris, Minnesota

https://ammoniaenergy.org/articles/flexible-renewable-ammonia-demonstrator-now-operational-in-min...
79•gritzko•4h ago•50 comments

Multicast TV Distribution on My Home Network

https://www.apalrd.net/posts/2026/isp_mcast/
30•mrngm•3h ago•5 comments

Show HN: I made some transistor animations

https://brandonli.net/semisim/animations
113•stunningllama•1d ago•10 comments

Kimi K3 built a Windows XP in browser

https://windows-xp.kimi.site/
42•boveyking•2h ago•22 comments

General Resolution: LLM Usage in Debian

https://www.debian.org/vote/2026/vote_002
46•zdw•4h ago•36 comments

Show HN: Brolly, a plain-text weather forecast site

https://brolly.sh/forecast/RWFP2qW8
110•jsax•6h ago•34 comments

DeepSeek pause fundraise after comments on compute gap to US leaked (transcript) [pdf]

https://github.com/demo-zexuan/liang-wenfeng-investor-meeting-2026-7-22/blob/master/%E6%A2%81%E6%...
6•oliculipolicula•33m ago•0 comments

Open-weight AI is having its Kubernetes moment

https://tobi.knaup.me/2026-07-25-open-weight-ai-is-having-its-kubernetes-moment/
297•tknaup•9h ago•239 comments

Clinical Failure Rates over the Decades: Yikes

https://www.science.org/content/blog-post/clinical-failure-rates-over-decades-yikes
14•EA-3167•1h ago•9 comments

Zero roadkill as Amazon canopy bridges secure 15,000 crossings

https://news.mongabay.com/2026/07/zero-roadkill-as-amazon-canopy-bridges-secure-15000-crossings/
268•hn_acker•3d ago•84 comments

Running a 28.9M parameter LLM on an $8 microcontroller

https://github.com/slvDev/esp32-ai
40•boveyking•5h ago•4 comments

Bitchat is now on Radicle

https://radicle.network/nodes/rosa.radicle.network/rad%3Az2v9tRJz1oknFAqCSY5W5c76nVvm6
197•h1watt•10h ago•121 comments

Show HN: Writemark, a dependency free web component for inline Markdown editing

22•_boffin_•3h ago•8 comments

Android May Soon Restrict On-Device ADB

https://kitsumed.github.io/blog/posts/android-may-soon-restrict-on-device-adb/
865•shscs911•17h ago•405 comments

How My Images Are Dithered

https://dead.garden/blog/how-my-images-are-dithered.html
212•surprisetalk•3d ago•73 comments

Show HN: SpinWin – A macOS menu bar app to visually rotate or spin any window

https://github.com/alokdhir/spinwin
3•dbm5•6h ago•0 comments

Bringing PyTorch Monarch to AMD GPUs

https://pytorch.org/blog/bringing-pytorch-monarch-to-amd-gpus-single-controller-distributed-train...
59•gmays•8h ago•6 comments

Show HN: Yorishiro – a macOS terminal where AI agents live

https://github.com/sktkkoo/Yorishiro
33•hakumei•3d ago•8 comments

The growing vigilante movement to knock out Flock surveillance cameras

https://www.theguardian.com/us-news/ng-interactive/2026/jul/25/flock-surveillance-cameras
166•bookofjoe•5h ago•91 comments

Building a Tiny 3D Renderer for a Tiny Handheld

https://saffroncr.itch.io/katavatis/devlog/1534514/building-a-tiny-3d-renderer-for-a-tiny-handheld
238•g0xA52A2A•3d ago•18 comments

The Dark Night of Mathematics

https://kirwinhampshire.substack.com/p/the-dark-night-of-mathematics
160•rmdmphilosopher•8h ago•181 comments

Becoming a Research Engineer at a Big LLM Lab

https://www.maxmynter.com/pages/blog/jobhunt
6•felixdoerp•2h ago•0 comments

Show HN: GeoChess – open-source geography strategy game

https://geochess.org
4•spider-hand•5d ago•11 comments

Kyber (YC W23) Is Hiring a Head of Engineering

https://www.ycombinator.com/companies/kyber/jobs/FGmI8mx-head-of-engineering
1•asontha•12h ago