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.

Residential proxies detected on White House network

https://layer3intel.com/blog/residential-proxies-white-house-network
655•Rasbora•5h ago•212 comments

Images 2.6

https://openai.com/index/introducing-images-2-6/
99•davidbarker•2h ago•82 comments

A thousand fewer paths to root

https://openai.com/index/a-thousand-fewer-paths-to-root/
105•dangelosaurus•2h ago•67 comments

Starfall – Affordable, routine access to microgravity

https://www.spacex.com/starfall
69•gmays•1h ago•29 comments

AI is forcing us to pay off 40 years of technical debt

https://spectrum.ieee.org/ai-in-cybersecurity-php2shell-vulnerability
1070•pseudolus•14h ago•638 comments

Ripple-65B Preview: U.S. Open-Weight SOTA on Agentic Coding

https://www.ricursive.com/ripple
224•Philpax•7h ago•79 comments

You'll need nerves of steel to work with AI agents

https://orchidfiles.com/youll-need-nerves-of-steel-to-work-with-ai-agents/
25•theorchid•2h ago•25 comments

Kimi K3.1 Pro model weights are out

https://huggingface.co/moonshotai/Kimi-K3.1-Pro
382•abrarthought•10h ago•102 comments

Insects don't swarm at LED lights

https://www.birdsoutsidemywindow.org/2026/11/03/insects-dont-swarm-at-led-lights/
166•speckx•6h ago•94 comments

A new Go API for JSON

https://go.dev/blog/jsonv2
231•olexsmir•8h ago•96 comments

Hacking the Xbox 360 Hypervisor Part 3: Bad Update Improvements

https://icode4.coffee/?p=1746
61•muricula•4h ago•2 comments

Qualcomm Cloud AI 100 Ultra – 150W AI Accelerator Card with 128GB at 548GB/s

https://www.qualcomm.com/data-center/products/cloud-ai-100-ultra
100•peter_d_sherman•6h ago•43 comments

Conductor is joining Meta

https://www.conductor.build/announcement
106•kenrose•7h ago•145 comments

Launch HN: Kino AI (YC S23) – AI media manager and video editor

70•lukeigel•8h ago•26 comments

Progress on provable inference for large language models

https://www.anthropic.com/research/provable-inference
174•ltononro•8h ago•84 comments

PageScribe: Handwriting and offline dictionary audio for KOReader

https://aspireai.kiranadimatyam.com/builds/pagescribe/
8•seshakiran•2d ago•0 comments

Show HN: After a decade of reversing, I got co-op working in DOS Wing Commander

https://fireflyk64.github.io/wcmulti/
106•daniel_rh•7h ago•15 comments

Guerrilla bike lanes: San Francisco makes illicit infrastructure permanent (2016)

https://99percentinvisible.org/article/guerrilla-bike-lanes-san-francisco-makes-illicit-infrastru...
260•zenincognito•11h ago•190 comments

Basically no one is using AI agents for their DoorDash orders

https://arstechnica.com/ai/2026/10/doordash-says-outside-ai-agents-have-only-led-to-hundreds-of-o...
71•PaulHoule•2d ago•123 comments

OpenAI to acquire Pierre Computer Company

https://openai.com/index/openai-to-acquire-pierre/
185•itunpredictable•10h ago•62 comments

Death Comes for XSLT

https://dbushell.com/2026/11/03/xslt-rip/
47•colejohnson66•5h ago•29 comments

Ask HN: What's your current AI agentic setup?

122•eggbrain•11h ago•145 comments

Show HN: Gauge – Open-Source CLI to recursively improve your docs

https://github.com/gauge-sh/gauge-cli
16•0x63_Problems•5h ago•3 comments

Tencent Hy4

https://hy.tencent.ai/research/hy4
187•Philpax•11h ago•61 comments

Show HN: The DNA of DOOM – How code structure survives across 44 ports

https://squid-protocol.github.io/gitgalaxy/museum-of-code/doom-dna/
25•joe-esquibel•2d ago•14 comments

A wave of plastic-free coffee pods and machines

https://www.cnn.com/2026/11/02/food/coffee-machine-plastic-free
44•thunderbong•10h ago•69 comments

Is Curiosity Good for Us?

https://www.lrb.co.uk/the-paper/v48/n20/adam-phillips/is-curiosity-good-for-us
17•NaOH•1d ago•8 comments

AMD expects to outsell Intel in Q4 for the first time in history

https://www.tomshardware.com/pc-components/cpus/amd-expects-to-outsell-intel-in-q4-for-the-first-...
475•rbanffy•10h ago•174 comments

Have I befriended a murderer?

https://longreads.com/2026/11/03/murder-friendship-doubt/
112•gmays•7h ago•60 comments

'It's just vape, nail, charity shops': Can anything save UK high street?

https://www.theguardian.com/business/2026/nov/04/what-can-save-the-british-high-street-rotherham
65•theanonymousone•9h ago•147 comments