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

Comments

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

Netflix to Acquire Warner Bros

https://about.netflix.com/en/news/netflix-to-acquire-warner-bros
1494•meetpateltech•15h ago•1161 comments

Self-hosting my photos with Immich

https://michael.stapelberg.ch/posts/2025-11-29-self-hosting-photos-with-immich/
50•birdculture•5d ago•17 comments

Cloudflare outage on December 5, 2025

https://blog.cloudflare.com/5-december-2025-outage/
576•meetpateltech•12h ago•439 comments

I cracked a $200 software protection with xcopy

https://www.ud2.rip/blog/enigma-protector/
14•vmfunc•1h ago•2 comments

Leaving Intel

https://www.brendangregg.com/blog//2025-12-05/leaving-intel.html
138•speckx•6h ago•51 comments

Extra Instructions of the 65XX Series CPU

http://www.ffd2.com/fridge/docs/6502-NMOS.extra.opcodes
24•embedding-shape•2h ago•5 comments

YouTube caught making AI-edits to videos and adding misleading AI summaries

https://www.ynetnews.com/tech-and-digital/article/bj1qbwcklg
147•mystraline•2h ago•76 comments

Gemini 3 Pro: the frontier of vision AI

https://blog.google/technology/developers/gemini-3-pro-vision/
373•xnx•11h ago•194 comments

Albert Michelson's Harmonic Analyzer [pdf]

https://engineerguy.com/fourier/pdfs/albert-michelsons-harmonic-analyzer.pdf
3•o4c•17m ago•1 comments

Adenosine on the common path of rapid antidepressant action: The coffee paradox

https://genomicpress.kglmeridian.com/view/journals/brainmed/aop/article-10.61373-bm025c.0134/arti...
87•PaulHoule•5h ago•39 comments

Frinkiac – 3M "The Simpsons" Screencaps

https://frinkiac.com/
37•GlumWoodpecker•3d ago•13 comments

Patterns for Defensive Programming in Rust

https://corrode.dev/blog/defensive-programming/
226•PaulHoule•11h ago•41 comments

Perpetual Futures

https://www.bitsaboutmoney.com/archive/perpetual-futures-explained/
66•sirodoht•6h ago•24 comments

Most technical problems are people problems

https://blog.joeschrag.com/2023/11/most-technical-problems-are-really.html
343•mooreds•14h ago•254 comments

Idempotency Keys for Exactly-Once Processing

https://www.morling.dev/blog/on-idempotency-keys/
97•defly•4d ago•40 comments

Ivan Sutherland Sketchpad Demo 1963 [video]

https://www.youtube.com/watch?v=6orsmFndx_o
19•fs_software•3d ago•0 comments

Fizz Buzz in CSS

https://susam.net/fizz-buzz-in-css.html
73•froober•7h ago•19 comments

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

173•proberts•11h ago•219 comments

Show HN: HCB Mobile – financial app built by 17 y/o, processing $6M/month

https://hackclub.com/fiscal-sponsorship/mobile/
116•mohamad08•2d ago•50 comments

EU hits X with €120M fine for breaching the Digital Services Act

https://www.dw.com/en/eu-imposes-120-million-fine-on-elon-musks-x-for-breaking-digital-rules/a-75...
24•vincvinc•1h ago•3 comments

Frank Gehry has died

https://www.bbc.co.uk/news/articles/c5y2p22z9gno
144•ksajadi•6h ago•53 comments

Tides are weirder than you think

https://signoregalilei.com/2025/11/12/tides-are-weirder-than-you-think/
80•surprisetalk•4d ago•18 comments

From Rockets to Heat Pumps

https://www.heatpumped.org/p/from-rockets-to-heat-pumps
9•ssuds•2h ago•3 comments

Making RSS More Fun

https://matduggan.com/making-rss-more-fun/
187•salmon•14h ago•93 comments

The missing standard library for multithreading in JavaScript

https://github.com/W4G1/multithreading
39•W4G1•6h ago•10 comments

Onlook (YC W25) the Cursor for Designers Is Hiring a Founding Fullstack Engineer

1•D_R_Farrell•10h ago

How fast can browsers process base64 data?

https://lemire.me/blog/2025/11/29/how-fast-can-browsers-process-base64-data/
29•mfiguiere•6d ago•18 comments

Why we built Lightpanda in Zig

https://lightpanda.io/blog/posts/why-we-built-lightpanda-in-zig
173•ashvardanian•9h ago•121 comments

Why are your models so big? (2023)

https://pawa.lt/braindump/tiny-models/
23•jxmorris12•3d ago•13 comments

Judge Signals Win for Software Freedom Conservancy in Vizio GPL Case

https://fossforce.com/2025/12/judge-signals-win-for-software-freedom-conservancy-in-vizio-gpl-case/
164•speckx•6h ago•15 comments