frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo ago

Comments

stevoski•8mo 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•8mo 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•8mo 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_•8mo ago
Spotbugs or checkstyle etc... would catch these. What does AI add here?
xyst•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
stupid af
Traubenfuchs•8mo 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•8mo 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•8mo ago
Can the QA team? How does the dev/staging environment help writing less buggy code?
rad_gruchalski•8mo ago
But can you leetcode heh.
TYMorningCoffee•8mo 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.

Mobile carriers can get your GPS location

https://an.dywa.ng/carrier-gnss.html
283•cbeuw•4h ago•193 comments

Genode OS is a tool kit for building highly secure special-purpose OS

https://genode.org/about/index
84•doener•3h ago•8 comments

US has investigated claims WhatsApp chats aren't private

https://www.bloomberg.com/news/articles/2026-01-29/us-has-investigated-claims-that-whatsapp-chats...
89•1vuio0pswjnm7•4h ago•243 comments

Demystifying ARM SME to Optimize General Matrix Multiplications

https://arxiv.org/abs/2512.21473
23•matt_d•1h ago•4 comments

Claude Code is your customer

https://calebjohn.xyz/blog/b2cc/
51•mfbx9da4•4d ago•33 comments

Outsourcing Thinking

https://erikjohannes.no/posts/20260130-outsourcing-thinking/index.html
9•todsacerdoti•41m ago•0 comments

The Saddest Moment (2013) [pdf]

https://www.usenix.org/system/files/login-logout_1305_mickens.pdf
26•tosh•1h ago•5 comments

CollectWise (YC F24) Is Hiring

https://www.ycombinator.com/companies/collectwise/jobs/ZunnO6k-ai-agent-engineer
1•OBrien_1107•47m ago

Show HN: Minimal – Open-Source Community driven Hardened Container Images

https://github.com/rtvkiz/minimal
23•ritvikarya98•1h ago•5 comments

CPython Internals Explained

https://github.com/zpoint/CPython-Internals
119•yufiz•4d ago•30 comments

The Spacecraft That Wouldn't Die

https://www.corememory.com/p/exclusive-theres-a-spaceship-epic-aerospace-chimera
5•trothamel•52m ago•0 comments

Google Cloud suspended my account for 2 years, only automated replies

73•andylizf•3h ago•39 comments

Nintendo DS code editor and scriptable game engine

https://crl.io/ds-game-engine/
32•Antibabelic•3h ago•7 comments

Finland to end "uncontrolled human experiment" with ban on youth social media

https://yle.fi/a/74-20207494
289•Teever•4h ago•233 comments

Death Note: L, Anonymity and Eluding Entropy (2011)

https://gwern.net/death-note-anonymity
48•teej•2h ago•7 comments

"Giving up upstream-ing my patches & feel free to pick them up"

https://mail.openjdk.org/pipermail/hotspot-dev/2026-January/118080.html
108•csmantle•10h ago•51 comments

Wikipedia: Sandbox

https://en.wikipedia.org/wiki/Wikipedia:Sandbox
3•zaptrem•1d ago•0 comments

Managing Unreliable Compilers

https://blog.tonkotsu.ai/p/managing-unreliable-compilers
3•derekcheng08•3d ago•0 comments

Show HN: I trained a 9M speech model to fix my Mandarin tones

https://simedw.com/2026/01/31/ear-pronunication-via-ctc/
419•simedw•20h ago•124 comments

Berlin: Record harvest sparks mass giveaway of free potatoes

https://www.theguardian.com/world/2026/jan/31/record-harvest-berlin-giveaway-potatoes
44•novaRom•2h ago•28 comments

We have ipinfo at home or how to geolocate IPs in your CLI using latency

https://blog.globalping.io/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency/
178•jimaek•12h ago•46 comments

My ridiculously robust photo management system (Immich edition)

https://jaisenmathai.com/articles/my-ridiculously-robust-photo-management-system-immich-edition/
210•jmathai•3d ago•92 comments

Guix System First Impressions as a Nix User

https://nemin.hu/guix.html
110•todsacerdoti•10h ago•48 comments

NASA's WB-57 crash lands at Houston

https://arstechnica.com/space/2026/01/one-of-nasas-three-wb-57-aircraft-just-did-a-belly-landing-...
132•verzali•3d ago•73 comments

Autonomous cars, drones cheerfully obey prompt injection by road sign

https://www.theregister.com/2026/01/30/road_sign_hijack_ai/
16•breve•59m ago•2 comments

Show HN: An extensible pub/sub messaging server for edge applications

https://github.com/narwhal-io/narwhal
15•ortuman•3d ago•0 comments

Antirender: remove the glossy shine on architectural renderings

https://antirender.com/
1774•iambateman•1d ago•424 comments

A novelist who took on the Italian mafia and lived

https://www.thetimes.com/culture/books/article/sicilian-man-leonardo-sciascia-rise-mafia-struggle...
72•Thevet•3d ago•68 comments

Silver plunges 30% in worst day since 1980, gold tumbles

https://www.cnbc.com/2026/01/30/silver-gold-fall-price-usd-dollar-fed-warsh-chair-trump-metals.html
244•pera•1d ago•257 comments

Peerweb: Decentralized website hosting via WebTorrent

https://peerweb.lol/
353•dtj1123•1d ago•111 comments