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.

Holy shit holy shit holy shit holy shit: The magnitude of what’s now happening

https://scottaaronson.blog/?p=10379
1447•Kotlopou•13h ago•1259 comments

1Password Security Incident

https://1password.com/blog/update-on-nov-2026-security-incident
1392•lxhrstn•15h ago•591 comments

Lions' Commentary on Unix: Why It Was Secretly Copied for 20 Years

https://fosscomics.com/posts/17.%20Lions%27%20Commentary%20on%20Unix/
74•joonehur•3h ago•10 comments

Much shorter version of GRH Lean verification from Anthropic

https://github.com/lsernau/grh-lean
438•nb-t•10h ago•223 comments

Moat: Your OpenRouter Replacement

https://commandcode.ai/moat
29•amanverasia•2h ago•16 comments

The New York Times warns photographers not to update Photoshop over AI features

https://www.theverge.com/ai-artificial-intelligence/1041227/the-new-york-times-warns-photographer...
359•rmason•11h ago•304 comments

Minipg: PostgreSQL as a Single Executable

https://progrium.github.io/minipg/
110•rguiscard•5h ago•16 comments

Collection of preserved UI style guides

https://aresluna.org/ui-style-guides/
150•sohkamyung•8h ago•16 comments

Tell HN: Lots of Ask HNs again

249•dang•8h ago•91 comments

Show HN: Synth Patch Hero

https://swarkentin.github.io/synth-patch-hero/
29•kaidon•2d ago•7 comments

The Great Automatic Grammatizator (By Roald Dahl), 1954 [pdf]

https://gwern.net/doc/fiction/science-fiction/1953-dahl-thegreatautomaticgrammatizator.pdf
82•Michelangelo11•3d ago•21 comments

Slow Ubuntu security response times

https://www.openwall.com/lists/oss-security/2026/11/25/9
278•gslin•12h ago•125 comments

GPT-6.2 Astra is the first model to beat Googlers' code golf records

https://bjin.github.io/go-codegolf-benchmark/#leaderboard
362•bjin•3d ago•103 comments

What VP ≠ VNP Means (In 3 Minutes)

https://www.friedgil.com/vpvnp
121•vinhnx•1d ago•32 comments

OpenAI cuts GPT-6.2 usage: Astra hits limits 40% faster, Sol 25% faster

https://twitter.com/thsottiaux/status/2125784147889393806
205•Herrera•5h ago•101 comments

Qualcomm's Oryon 3 Reaches the Top

https://chipsandcheese.com/p/qualcomms-oryon-3-reaches-the-top
45•wmf•5h ago•13 comments

Bare Metal Qwen

https://github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os
140•miohtama•10h ago•34 comments

Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server

https://opensec.in/blog/nfs2root-cve-2026-99362
133•dm•12h ago•51 comments

How did pinwheel calculators work?

https://blog.coredump.cx/p/how-did-pinwheel-calculators-work
66•surprisetalk•1d ago•6 comments

The history of civilization is the history of wheat

https://asteriskmag.com/issues/16/marginal-grains
21•NaOH•1d ago•1 comments

'Castles' Review

https://www.wsj.com/arts-culture/books/castles-review-playing-defense-da10d776?st=tR9KT4&reflink=...
16•mr_tyzik•1d ago•3 comments

Deploying a payphone on a tiny Pacific Island for fun and zero profit

https://nickvsnetworking.com/deploying-a-payphone-on-a-tiny-pacific-island-for-fun-and-zero-profit/
92•qzervaas•10h ago•12 comments

SSH is a GUI framework

https://zydra.sh/articles/ssh-is-a-gui-framework/
188•teledream•4d ago•93 comments

XKCD and Fourier

https://leancrew.com/all-this/2026/10/xkcd-and-fourier/
47•surprisetalk•1d ago•14 comments

Unconditional Integer Factorization in Subexponential Time

https://github.com/google-research/google-research/tree/4a7bc8ab0bc770e71a259b7966c500496b99010a/...
14•_alternator_•3h ago•1 comments

The polynomial Hirsch conjecture is false [pdf]

https://github.com/openai/math/blob/main/preprints/Superpolynomial-graph-diameter-of-simple-polyt...
152•acossta•15h ago•41 comments

Deriving Black-Scholes

https://david.alvarezrosa.com/posts/deriving-black-scholes/
70•meysamazad•15h ago•46 comments

Can a TV be too large? An investigation

https://techcrunch.com/2026/11/22/can-a-tv-be-too-large-an-investigation/
57•jomon003•3d ago•80 comments

I checked Clojure's core with Lean and found unreported bugs

https://s.conao3.com/blog/2026/e4f733
219•encyclopedism•17h ago•76 comments

Hkust 3D Prints a Titanium Alloy That Keeps Hardening

https://3dprinting.com/news/hkust-researchers-3d-print-a-titanium-alloy-that-keeps-hardening-unde...
35•rbanffy•2d ago•6 comments