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.

Kobo can run apps now

https://bandarlabs.github.io/Cobalt/
153•thepoet•2h ago•62 comments

Felony Bench

https://www.felonybench.com/
188•colinprince•3h ago•84 comments

Kagi added a setting for removing paywalled links from search results

https://kagi.com/changelog#11296
784•speckx•5h ago•277 comments

I accidentally logged hundreds of thousands of phone calls to military bases

https://lina.sh/blog/hijacking-e164-arpa
264•gavide•5h ago•33 comments

AI boosted homework scores, then exam scores dropped: study

https://www.economist.com/graphic-detail/2026/08/18/does-ai-stop-children-from-learning
76•dash2•2d ago•146 comments

Scientists release biggest 2D map of the universe

https://newscenter.lbl.gov/2026/08/10/scientists-release-biggest-2d-map-of-the-universe/
12•NKosmatos•26m ago•3 comments

DeepSeek-v4-flash-vision-exp

https://api-docs.deepseek.com/guides/vision/
392•dares2573•8h ago•129 comments

Rebuilding our Electron meeting-recording engine in Swift

https://circleback.ai/blog/how-we-rebuilt-our-electron-recording-engine-in-swift
30•arguiot•1h ago•2 comments

I ran Photoshop on a £0.60 computer chip

https://pointinthecloud.com/2026-08-19-144600.html
32•colinprince•3h ago•2 comments

LiteLLM (YC W23) Is Hiring – Rust / Performance Engineers

https://jobs.ashbyhq.com/litellm/3f326076-7415-46a1-921e-8a1b1d6ee2b6
1•ij23•2h ago

People of ACM – Russ Cox

https://www.acm.org/articles/people-of-acm/2026/russ-cox
12•signa11•4d ago•1 comments

Felony charges for citizen deleting phone data at US Border

https://www.nytimes.com/2026/08/21/us/politics/samuel-tunick-deleted-phone-felony.html
90•floathub•6h ago•148 comments

A look under our trunk: what's in our compute

https://waymo.com/blog/2026/08/look-under-our-trunk/
21•ra7•1d ago•2 comments

How we made a text-to-speech model respond in sub-50 ms

https://nari-labs.com/blog/qwen3-tts-speed-cost-frontier/
35•toebee•3h ago•9 comments

What happens when a GPU reads memory

https://blog.doubleword.ai/what-happens-when-a-gpu-reads-memory
40•ibobev•2h ago•10 comments

Kodak's "pre-invented" lunar orbiter camera; or, the fate of SAMOS readout

https://invertingvision.com/2026/08/10/kodaks-pre-invented-lunar-orbiter-camera-or-the-fate-of-sa...
38•cainxinth•5h ago•1 comments

Does whispering to agents in docs help?

https://passo.uno/if-you-are-an-agent-read-this/
23•theletterf•4d ago•4 comments

Quantifying the honey bee dance floor

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0341456
14•Ariarule•1w ago•1 comments

Another better lower bound for n=17 square packing

http://gus-massa.blogspot.com/2026/08/another-better-lower-bound-for-n17.html
16•gus_massa•2h ago•1 comments

Building an (almost) fully self-hosted, sandboxed, agentic software factory

https://blog.jakesaunders.dev/building-an-almost-fully-self-hosted-sandboxed-agentic-software-fac...
27•jakelsaunders94•2h ago•19 comments

LLMs are proof that Unix won

https://bastian.rieck.me/blog/2026/unix/
32•Pseudomanifold•3h ago•9 comments

New Worlds: We are living in the future of J.G. Ballard or William Gibson

https://precastreinforced.co.uk/2026/08/16/new-worlds/
154•speckx•5h ago•106 comments

I'm becoming AI-blind

https://cymerys.com/w/im-becoming-ai-blind
130•rcymerys•7h ago•125 comments

The road to ACID transactions in Cassandra 6

https://theconsensus.dev/p/2026/08/16/transactions-in-cassandra.html
43•eatonphil•6h ago•1 comments

Show HN: Shoehorn – Quantize any model down to run on your machine

https://notactuallytreyanastasio.github.io/shoehorn/
51•rhgraysonii•3d ago•10 comments

Show HN: Proliferate- open-source, self-hostable Codex for any coding agent

https://github.com/proliferate-ai/proliferate
22•pablo24602•2h ago•12 comments

Galactic Compass 2: now with new augmented reality mode

https://interconnected.org/home/2026/08/21/galactic
7•bobbiechen•1h ago•2 comments

Decayfmt – a file format that corrupts itself a little every time you open it

https://github.com/aravpanwar/decayfmt
20•unprovable•2h ago•5 comments

Radiation damage to Hubble has been 4.3 years out of phase with the Solar cycle

https://arxiv.org/abs/2608.18214
83•pppone•5h ago•27 comments

The coolest anti-surveillance tools at Defcon [video]

https://www.youtube.com/watch?v=-2uAsJ5EPAw
72•neom•3d ago•5 comments