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

Comments

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

Alberta startup sells no-tech tractors for half price

https://wheelfront.com/this-alberta-startup-sells-no-tech-tractors-for-half-price/
199•Kaibeezy•53m ago•44 comments

Qwen3.6-27B: Flagship-Level Coding in a 27B Dense Model

https://qwen.ai/blog?id=qwen3.6-27b
259•mfiguiere•4h ago•135 comments

Windows 9x Subsystem for Linux

https://social.hails.org/@hailey/116446826733136456
676•sohkamyung•7h ago•159 comments

Our eighth generation TPUs: two chips for the agentic era

https://blog.google/innovation-and-ai/infrastructure-and-cloud/google-cloud/eighth-generation-tpu...
259•xnx•5h ago•133 comments

3.4M Solar Panels

https://tech.marksblogg.com/american-solar-farms-v2.html
213•marklit•5h ago•130 comments

Treetops glowing during storms captured on film for first time

https://www.psu.edu/news/earth-and-mineral-sciences/story/treetops-glowing-during-storms-captured...
125•t-3•3h ago•28 comments

5x5 Pixel font for tiny screens

https://maurycyz.com/projects/mcufont/
18•zdw•3d ago•3 comments

GitHub CLI now collects pseudoanonymous telemetry

https://cli.github.com/telemetry
280•ingve•5h ago•215 comments

Scoring Show HN submissions for AI design patterns

https://www.adriankrebs.ch/blog/design-slop/
202•hubraumhugo•2h ago•154 comments

Bodega Cats of New York

https://bodegacatsofnewyork.com
41•zdw•4d ago•14 comments

Columnar Storage Is Normalization

https://buttondown.com/jaffray/archive/columnar-storage-is-normalization/
67•ibobev•4h ago•25 comments

Youth Suicides Declined After Creation of National Hotline

https://www.nytimes.com/2026/04/22/science/988-youth-suicides-decline.html
52•marojejian•1h ago•11 comments

How does GPS work?

https://perthirtysix.com/how-the-heck-does-gps-work
168•alfanick•8h ago•36 comments

Making RAM at Home [video]

https://www.youtube.com/watch?v=h6GWikWlAQA
538•kaipereira•1d ago•152 comments

Martin Fowler: Technical, Cognitive, and Intent Debt

https://martinfowler.com/fragments/2026-04-14.html
15•theorchid•1h ago•1 comments

Show HN: Broccoli, one shot coding agent on the cloud

https://github.com/besimple-oss/broccoli
11•yzhong94•1h ago•4 comments

XOR'ing a register with itself is the idiom for zeroing it out. Why not sub?

https://devblogs.microsoft.com/oldnewthing/20260421-00/?p=112247
153•ingve•10h ago•164 comments

Another Day Has Come

https://daringfireball.net/2026/04/another_day_has_come
125•ndr42•20h ago•110 comments

DuckDB 1.5.2 – SQL database that runs on laptop, server, in the browser

https://duckdb.org/2026/04/13/announcing-duckdb-152
64•janandonly•2h ago•14 comments

MuJoCo – Advanced Physics Simulation

https://github.com/google-deepmind/mujoco
89•modinfo•3d ago•18 comments

Drunk post: Things I've learned as a senior engineer (2021)

https://luminousmen.substack.com/p/drunk-post-things-ive-learned-as
265•zdw•17h ago•196 comments

Contact Lens Uses Microfluidics to Monitor and Treat Glaucoma

https://spectrum.ieee.org/smart-contact-lens-glaucoma-microfluidics
85•pseudolus•3d ago•2 comments

Expansion Artifacts

https://mattstromawn.com/writing/expansion-artifacts/
21•tobr•1d ago•1 comments

Garbage Collection Without Unsafe Code

https://fitzgen.com/2024/02/06/safe-gc.html
98•foota•3d ago•41 comments

ChatGPT Images 2.0

https://openai.com/index/introducing-chatgpt-images-2-0/
977•wahnfrieden•22h ago•871 comments

Prefill-as-a-Service:KVCache of Next-Generation Models Could Go Cross-Datacenter

https://arxiv.org/abs/2604.15039
37•matt_d•3d ago•1 comments

Windows Server 2025 Runs Better on ARM

https://jasoneckert.github.io/myblog/server-2025-arm64/
175•jasoneckert•3d ago•130 comments

All your agents are going async

https://zknill.io/posts/all-your-agents-are-going-async/
109•zknill•2d ago•68 comments

Startups Brag They Spend More Money on AI Than Human Employees

https://www.404media.co/startups-brag-they-spend-more-money-on-ai-than-human-employees/
13•SLHamlet•49m ago•4 comments

Acetaminophen vs. ibuprofen

https://asteriskmag.com/issues/14/the-mystery-in-the-medicine-cabinet
627•nkurz•2d ago•408 comments