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.

Antirender: remove the glossy shine on architectural renderings

https://antirender.com/
1153•iambateman•12h ago•260 comments

Sumerian Star Map Recorded the Impact of an Asteroid (2024)

https://archaeologyworlds.com/5500-year-old-sumerian-star-map-recorded/
20•griffzhowl•1h ago•2 comments

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

https://simedw.com/2026/01/31/ear-pronunication-via-ctc/
219•simedw•8h ago•77 comments

Show HN: Phage Explorer

https://phage-explorer.org/
51•eigenvalue•3h ago•4 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...
33•Thevet•3d ago•9 comments

Ashcan Comic

https://en.wikipedia.org/wiki/Ashcan_comic
27•benbreen•1d ago•5 comments

Peerweb: Decentralized website hosting via WebTorrent

https://peerweb.lol/
253•dtj1123•12h ago•86 comments

An anecdote about backward compatibility

https://blog.plover.com/2026/01/26/#wrterm
21•speckx•4d ago•2 comments

Moltbook

https://www.moltbook.com/
1448•teej•1d ago•688 comments

YouTube blocks background video playback on Brave and other Browsers

https://piunikaweb.com/2026/01/28/youtube-background-play-samsung-internet-brave/
22•croes•1h ago•6 comments

HTTP Cats

https://http.cat/
350•surprisetalk•19h ago•60 comments

Disrupting the largest residential proxy network

https://cloud.google.com/blog/topics/threat-intelligence/disrupting-largest-residential-proxy-net...
159•cdrnsf•2d ago•135 comments

My Ridiculously Robust Photo Management System (Immich Edition)

https://jaisenmathai.com/articles/my-ridiculously-robust-photo-management-system-immich-edition/
9•jmathai•2d ago•1 comments

Stonebraker on CAP theorem and Databases (2010)

https://perspectives.mvdirona.com/2010/04/stonebraker-on-cap-theorem-and-databases/
61•onurkanbkrc•9h ago•27 comments

Kimi K2.5 Technical Report [pdf]

https://github.com/MoonshotAI/Kimi-K2.5/blob/master/tech_report.pdf
292•vinhnx•16h ago•110 comments

Naples' 1790s civil war was intensified by moral panic over Real Analysis (2023)

https://lareviewofbooks.org/article/foundational-anxieties-modern-mathematics-and-the-political-i...
26•OgsyedIE•5h ago•6 comments

Designing a Passively Safe API

https://www.danealbaugh.com/articles/passively-safe-apis
15•dalbaugh•4d ago•2 comments

Surely the crash of the US economy has to be soon

https://wilsoniumite.com/2026/01/27/surely-it-has-to-be-soon/
288•Wilsoniumite•22h ago•414 comments

The engineer who invented the Mars rover suspension in his garage [video]

https://www.youtube.com/watch?v=QKSPk_0N4Jc
317•UltraSane•4d ago•44 comments

P vs. NP and the Difficulty of Computation: A ruliological approach

https://writings.stephenwolfram.com/2026/01/p-vs-np-and-the-difficulty-of-computation-a-ruliologi...
69•tzury•11h ago•31 comments

The $100B megadeal between OpenAI and Nvidia is on ice

https://www.wsj.com/tech/ai/the-100-billion-megadeal-between-openai-and-nvidia-is-on-ice-aa3025e3
291•pixelesque•8h ago•205 comments

International Collection of Tongue Twisters (2018)

https://tongue-twister.net
16•NaOH•4d ago•5 comments

Starlink updates privacy policy to allow consumer data to train

https://finance.yahoo.com/news/musks-starlink-updates-privacy-policy-230853500.html
42•malchow•3h ago•14 comments

Declassifying JUMPSEAT: an American pioneer in space

https://www.nro.gov/news-media-featured-stories/news-media-archive/News-Article/Article/4392223/d...
36•mkmk•2d ago•13 comments

I trapped an AI model inside an art installation (2025) [video]

https://www.youtube.com/watch?v=7fNYj0EXxMs
86•handfuloflight•11h ago•28 comments

Code is cheap. Show me the talk

https://nadh.in/blog/code-is-cheap/
216•ghostfoxgod•20h ago•194 comments

Coding Is When We're Least Productive

https://codemanship.wordpress.com/2026/01/30/coding-is-when-were-least-productive/
16•vinhnx•6h ago•2 comments

How to explain Generative AI in the classroom

https://dalelane.co.uk/blog/?p=5847
53•thinkingaboutit•1d ago•17 comments

Self Driving Car Insurance

https://www.lemonade.com/car/explained/self-driving-car-insurance/
128•KellyCriterion•17h ago•280 comments

Roots is a game server daemon that manages Docker containers for game servers

https://github.com/SproutPanel/roots
32•Kerrick•4d ago•6 comments