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.

Virginia bans sale of geolocation data

https://www.hunton.com/privacy-and-cybersecurity-law-blog/virginia-bans-sale-of-geolocation-data
780•toomuchtodo•12h ago•125 comments

Half-Baked Product

https://weli.dev/blog/half-baked-product/
29•weli•1h ago•8 comments

CarPlay Is Additive

https://www.caseyliss.com/2026/7/2/carplay-is-additive-you-dolts
306•sprawl_•8h ago•379 comments

Right to Local Intelligence

https://righttointelligence.org/
259•thoughtpeddler•10h ago•87 comments

Alibaba to ban Claude Code in workplace over alleged backdoor risks, source says

https://www.reuters.com/world/china/alibaba-ban-claude-code-workplace-over-alleged-backdoor-risks...
55•nsoonhui•1h ago•23 comments

crustc: entirety of `rustc`, translated to C

https://github.com/FractalFir/crustc
281•Philpax•11h ago•56 comments

The Safari MCP server for web developers

https://webkit.org/blog/18136/introducing-the-safari-mcp-server-for-web-developers/
101•coloneltcb•8h ago•17 comments

Since Linux 6.9, LUKS suspend stopped wiping disk-encryption keys from memory

https://mathstodon.xyz/@iblech/116769502749142438
471•IngoBlechschmid•18h ago•205 comments

How working with a blind client revealed invisible accessibility gaps

https://iinteractive.com/resources/blog/read-only
16•fortyseven•3d ago•4 comments

Reality has a surprising amount of detail (2017)

https://johnsalvatier.org/blog/2017/reality-has-a-surprising-amount-of-detail
270•vinhnx•5d ago•101 comments

Podman v6.0.0

https://blog.podman.io/2026/07/introducing-podman-v6-0-0/
533•soheilpro•19h ago•209 comments

Exapunks (2018)

https://www.zachtronics.com/exapunks/
293•yu3zhou4•15h ago•100 comments

14× faster embeddings: how we rebuilt the ONNX path in Manticore

https://manticoresearch.com/blog/onnx-embeddings-speedup/
49•snikolaev•6h ago•7 comments

Immich 3.0

https://github.com/immich-app/immich/discussions/29439
420•hashier•19h ago•208 comments

Underwater Suit-Wearing Cyborg Insect Capable of Diving and Terra-Aqua Travel

https://www.nature.com/articles/s41467-026-74235-1
42•gscott•3d ago•15 comments

Quake in 13 Kilobytes (2021)

https://js13kgames.com/games/q1k3
21•mortenjorck•6d ago•4 comments

Q&A with Micron's VP and GM of Memory

https://morethanmoore.substack.com/p/q-and-a-with-microns-vp-and-gm-of
3•zdw•2d ago•0 comments

An American Privacy Emergency

https://scottaaronson.blog/?p=9902
308•flowercalled•10h ago•93 comments

Postgres transactions are a distributed systems superpower

https://www.dbos.dev/blog/co-locating-workflow-state-with-your-data
180•KraftyOne•15h ago•78 comments

The short leash AI coding method for beating Fable

https://blog.okturtles.org/2026/07/short-leash-ai-method/
133•Riseed•14h ago•163 comments

A Special Wireless-Free Nikon Camera Is Publicly Available for the First Time

https://petapixel.com/2026/06/24/a-special-wireless-free-nikon-camera-is-publicly-available-for-t...
60•HardwareLust•1w ago•43 comments

Superpowers 6

https://blog.fsck.com/2026/06/15/Superpowers-6/
150•seahorseemoji•2d ago•57 comments

Claude-real-video - any LLM can watch a video

https://github.com/HUANGCHIHHUNGLeo/claude-real-video
136•cortexosmain•14h ago•42 comments

FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

https://apple.github.io/foundationdb/flow.html
69•sourdecor•19h ago•11 comments

Great Salt Lake Tracker – Grow the Flow

https://growtheflowutah.org/laketracker/
101•cfowles•14h ago•37 comments

This is my attempt to get Vulkan going on NetBSD

https://github.com/segaboy/vulkan-netbsd
107•segaboy81•15h ago•30 comments

Mystery identity of 'Green Boots' climber is finally solved after DNA test

https://www.dailymail.com/news/article-15943905/Mystery-identity-Green-Boots-climber-macabre-land...
107•FireBeyond•11h ago•70 comments

EFF letter to FTC on X consent order [pdf]

https://www.eff.org/deeplinks/2026/06/eff-and-allies-xs-ftc-petition-waive-privacy-violation-orde...
139•Terretta•14h ago•60 comments

Cowboys, Frontiersmen, Settlers, Townspeople, Cityfolk

https://huntersoftwareconsulting.com/posts/2026-06-28-company-phase-changes/
15•mooreds•3d ago•5 comments

Show HN: zkGolf – Competitive optimization of formally verified circuits

https://zk.golf/
60•rot256•18h ago•9 comments