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.

Self-hosting my photos with Immich

https://michael.stapelberg.ch/posts/2025-11-29-self-hosting-photos-with-immich/
327•birdculture•6d ago•125 comments

Wolfram Compute Services

https://writings.stephenwolfram.com/2025/12/instant-supercompute-launching-wolfram-compute-services/
60•nsoonhui•2h ago•20 comments

Guy Built a Compact Camera Using an Optical Mouse

https://petapixel.com/2025/11/13/this-guy-built-a-compact-camera-using-an-optical-mouse/
50•PaulHoule•2d ago•7 comments

Have I been Flocked? – Check if your license plate is being watched

https://haveibeenflocked.com/
151•pkaeding•6h ago•69 comments

Cloudflare outage on December 5, 2025

https://blog.cloudflare.com/5-december-2025-outage/
655•meetpateltech•18h ago•490 comments

Leaving Intel

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

Making tiny 0.1cc two stroke engine from scratch

https://youtu.be/nKVq9u52A-c?si=KVY6AK7tsudqnbJN
61•pillars•5d ago•7 comments

Schizophrenia sufferer mistakes smart fridge ad for psychotic episode

https://old.reddit.com/r/LegalAdviceUK/comments/1pc7999/my_schizophrenic_sister_hospitalised_hers...
116•hliyan•2h ago•53 comments

Gemini 3 Pro: the frontier of vision AI

https://blog.google/technology/developers/gemini-3-pro-vision/
456•xnx•17h ago•226 comments

PalmOS on FisherPrice Pixter Toy

https://dmitry.gr/?r=05.Projects&proj=27.%20rePalm#pixter
73•dmitrygr•6h ago•9 comments

Netflix to Acquire Warner Bros

https://about.netflix.com/en/news/netflix-to-acquire-warner-bros
1586•meetpateltech•21h ago•1196 comments

Infracost (YC W21) is hiring Sr Node Eng to make $600B/yr cloud spend proactive

https://www.ycombinator.com/companies/infracost/jobs/Sr9rmHs-senior-product-engineer-node-js
1•akh•3h ago

PC-Man (IBM PC 1983) and the spark of childhood wonder

https://intotheverticalblank.com/2025/12/02/interview-greg-kuperberg/
12•nanochess•3d ago•3 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...
149•PaulHoule•11h ago•78 comments

Aurora: The Linux-based ultimate workstation

https://getaurora.dev/en
9•doener•6d ago•2 comments

Frinkiac – 3M "The Simpsons" Screencaps

https://frinkiac.com/
99•GlumWoodpecker•3d ago•29 comments

Ivan Sutherland Sketchpad Demo 1963 [video]

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

Ask HN: How many people got VPNs in response to laws like UK Online Safety Act?

8•hodgesrm•41m ago•1 comments

Extra Instructions Of The 65XX Series CPU (1996)

http://www.ffd2.com/fridge/docs/6502-NMOS.extra.opcodes
49•embedding-shape•9h ago•8 comments

Netflix’s AV1 Journey: From Android to TVs and Beyond

https://netflixtechblog.com/av1-now-powering-30-of-netflix-streaming-02f592242d80
502•CharlesW•1d ago•257 comments

Idempotency keys for exactly-once processing

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

Patterns for Defensive Programming in Rust

https://corrode.dev/blog/defensive-programming/
263•PaulHoule•17h ago•56 comments

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

197•proberts•18h ago•243 comments

Guide to making a CHIP-8 emulator (2020)

https://tobiasvl.github.io/blog/write-a-chip-8-emulator/
19•AlexeyBrin•6d ago•2 comments

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

https://hackclub.com/fiscal-sponsorship/mobile/
148•mohamad08•3d ago•55 comments

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

https://www.ynetnews.com/tech-and-digital/article/bj1qbwcklg
291•mystraline•8h ago•153 comments

Albert Michelson's Harmonic Analyzer (2014) [pdf]

https://engineerguy.com/fourier/pdfs/albert-michelsons-harmonic-analyzer.pdf
19•o4c•6h ago•4 comments

Perpetual futures, explained

https://www.bitsaboutmoney.com/archive/perpetual-futures-explained/
97•sirodoht•12h ago•54 comments

The missing standard library for multithreading in JavaScript

https://github.com/W4G1/multithreading
77•W4G1•13h ago•22 comments

Tides are weirder than you think

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