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.

Unauthenticated remote code execution in Nginx

https://www.wiz.io/blog/nginx-http2-rce-vulnerabilities
590•speedping•4h ago•209 comments

Seven new models at scalable price-performance

https://microsoft.ai/news/microsoft-ignite-2026/
268•gmays•3h ago•170 comments

Genie 4 is now available

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/genie-4-now-available-p...
43•leumon•41m ago•17 comments

Inside Deutsche Bank

https://www.inside-db.com/
334•gyre007•3h ago•121 comments

DNS resolvers are the wrong place to fight piracy

https://techstackups.com/articles/quad9-leaves-france-dns-blocking/
430•ritzaco•6h ago•136 comments

Scottish HTTP Codes

https://underwood.network/http/scots.html
46•mooreds•1h ago•6 comments

AI agents ask better questions than KPMG accountants in audit trial

https://europeanbusinessmagazine.com/ai-agents-better-questions-kpmg/
141•Betelbuddy•3h ago•70 comments

The Magic of Partial Evaluation

https://jimmyhmiller.com/magic-of-partial-evaluation
22•aray07•1h ago•2 comments

KVM: x86: Unconditionally reset MMU context when emulating INIT (CVE-2026-99312)

https://www.cve.org/CVERecord?id=CVE-2026-99312
137•Kozmik1•3h ago•81 comments

Advancing chip design with OpenAI models

https://openai.com/index/advancing-chip-design-with-our-models/
40•vighneshiyer•1h ago•13 comments

Show HN: Mastra Factory, the open-source software factory we use to build Mastra

22•codekarate•2h ago•5 comments

Show HN: Take Voyager 1 apart, down to a single memory chip

https://rshekhar.com/voyager/
75•raj-shekhar•3h ago•17 comments

'Human' Is Cambridge Dictionary's Word of the Year 2026

https://www.cam.ac.uk/news/cambridge-dictionary-reveals-word-of-the-year-2026
173•DeepLogin•4h ago•127 comments

Show HN: ExitPath – Open-source ways out of Slack, Notion and Microsoft 365

https://exitpath-ruddy.vercel.app/
73•zerocool0101•3h ago•11 comments

Launch HN: Maritime (YC F26) – A managed cloud for production AI agents

22•ashriv•2h ago•20 comments

U.S. AirForce is looking for old storage Media (CF or PC cards)

https://sam.gov/workspace/contract/opp/8948e8601e964c6aba9c801eee16b1be/view
105•birdboat00•3h ago•59 comments

The x86 CPU: From 4004 to 486

https://pikuma.com/blog/history-of-x86-4004-to-486
89•ibobev•4h ago•22 comments

NGINX2Root by Xint – From Nginx visitor to root of the server host

https://nginx2root.com/
72•purkka•4h ago•13 comments

Lakegres: Vector search on existing Open/Hudi/Iceberg tables

https://www.onehouse.ai/blog/lakegres-vector-search-on-open-table-formats
26•cloud8bits•1h ago•5 comments

A Primer on Fourier Series

https://arxiv.org/abs/2510.18203
70•teleforce•4h ago•15 comments

Evidence (YC S21) Is Hiring

https://www.ycombinator.com/companies/evidence/jobs/1xb9PpP-founding-gtm-lead
1•amcaskill•7h ago

Energy-Based Reasoners: 385x more efficient inference

https://energy-based-reasoners.github.io/
270•frenchmajesty•10h ago•42 comments

CrossPoint Reader

https://crosspointreader.com
30•kristianpaul•2h ago•15 comments

Show HN: Nobody blocks a keyboard – Rooted Android as a physical USB Deck

https://github.com/mr-anjaneyam/Emittr
11•mr-anjaneyam•2d ago•14 comments

Attackers Used Optimizely to A/B Test Malware on Top Websites

https://krebsonsecurity.com/2026/11/attackers-used-optimizely-to-a-b-test-malware-on-top-websites/
43•Bender•4h ago•10 comments

SuperEMeans: Making e-means 3× faster

https://www.lkuffo.com/superemeans/
26•lkuffo2•3h ago•0 comments

RFC 2675: IPv6 Jumbograms

https://www.rfc-editor.org/info/rfc2675/
22•caminanteblanco•3h ago•18 comments

Poland says it thwarted false flag operation near border with Kaliningrad

https://www.yahoo.com/news/world/articles/russia-reportedly-planned-mass-casualty-090500574.html
252•ilamont•4h ago•83 comments

Show HN: Type Fighter 2

https://typefighter2.com/
100•torumitch•8h ago•47 comments

New FreeBSD Pkgbase(8) Tool

https://vermaden.wordpress.com/2026/11/10/freebsd-pkgbase-update-tool/
34•vermaden•3d ago•3 comments