frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Fixrleak: Fixing Java Resource Leaks with GenAI

https://www.uber.com/blog/fixrleak-fixing-java-resource-leaks-with-genai/
11•carimura•3d ago

Comments

stevoski•4h 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•3h 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•3h 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_•3h ago
Spotbugs or checkstyle etc... would catch these. What does AI add here?
xyst•3h 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•3h 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•3h 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•2h 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•2h 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•2h ago
stupid af
Traubenfuchs•35m 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.

TYMorningCoffee•12m 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.

Pyrefly: A new type checker and IDE experience for Python

https://engineering.fb.com/2025/05/15/developer-tools/introducing-pyrefly-a-new-type-checker-and-ide-experience-for-python/
25•homarp•1h ago•4 comments

JavaScript's New Superpower: Explicit Resource Management

https://v8.dev/features/explicit-resource-management
161•olalonde•8h ago•107 comments

Push Ifs Up and Fors Down

https://matklad.github.io/2023/11/15/push-ifs-up-and-fors-down.html
37•goranmoomin•4h ago•11 comments

Laser-Induced Graphene from Commercial Inks and Dyes

https://advanced.onlinelibrary.wiley.com/doi/10.1002/advs.202412167
5•PaulHoule•2d ago•0 comments

Japan's IC cards are weird and wonderful

https://aruarian.dance/blog/japan-ic-cards/
144•aecsocket•2d ago•120 comments

Wow@Home – Network of Amateur Radio Telescopes

https://phl.upr.edu/wow/outreach
148•visviva•12h ago•17 comments

Implementing a RISC-V Hypervisor

https://seiya.me/blog/riscv-hypervisor
44•ingve•6h ago•2 comments

Popcorn: Run Elixir in WASM

https://popcorn.swmansion.com/
71•clessg•1d ago•8 comments

Getting AI to write good SQL

https://cloud.google.com/blog/products/databases/techniques-for-improving-text-to-sql
403•richards•17h ago•245 comments

Catalog of Novel Operating Systems

https://github.com/prathyvsh/os-catalog
64•prathyvsh•6h ago•18 comments

XTool – Cross-platform Xcode replacement

https://github.com/xtool-org/xtool
146•TheWiggles•12h ago•37 comments

OBNC – Oberon-07 Compiler

https://miasap.se/obnc/
6•AlexeyBrin•2h ago•0 comments

Open Problems in Computational geometry

https://topp.openproblem.net/
24•nill0•4h ago•0 comments

Thoughts on thinking

https://dcurt.is/thinking
536•bradgessler•19h ago•347 comments

A Research Preview of Codex

https://openai.com/index/introducing-codex/
456•meetpateltech•23h ago•388 comments

The Japanese method of creating forests comes to Mexico

https://english.elpais.com/climate/2025-05-17/miyawaki-in-nezahualcoyotl-the-japanese-method-of-creating-forests-comes-to-mexico.html
19•geox•1h ago•1 comments

You do not need NixOS on the desktop

https://aruarian.dance/blog/you-do-not-need-nixos/
33•transpute•5h ago•20 comments

New high-quality hash measures 71GB/s on M4

https://github.com/Nicoshev/rapidhash
95•nicoshev11•3d ago•36 comments

MIT asks arXiv to withdraw preprint of paper on AI and scientific discovery

https://economics.mit.edu/news/assuring-accurate-research-record
337•carabiner•23h ago•174 comments

Rustls Server-Side Performance

https://www.memorysafety.org/blog/rustls-server-perf/
132•jaas•4d ago•39 comments

MCP: An in-depth introduction

https://www.speakeasy.com/mcp/mcp-tutorial
113•ritzaco•4d ago•45 comments

Why Moderna Merged Its Tech and HR Departments

https://www.wsj.com/articles/why-moderna-merged-its-tech-and-hr-departments-95318c2a
24•andy99•3d ago•25 comments

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

228•proberts•23h ago•406 comments

How can traditional British TV survive the US streaming giants

https://www.bbc.co.uk/news/articles/cx2enydkew3o
46•asplake•3d ago•136 comments

Show HN: Merliot – plugging physical devices into LLMs

https://github.com/merliot/hub
59•sfeldma•13h ago•13 comments

Transformer neural net learns to run Conway's Game of Life just from examples

https://sidsite.com/posts/life-transformer/
39•montebicyclelo•4h ago•22 comments

Show HN: Fahmatrix – A Lightweight, Pandas-Like DataFrame Library for Java

https://github.com/moustafa-nasr/fahmatrix
34•mousomashakel•9h ago•5 comments

ClojureScript 1.12.42

https://clojurescript.org/news/2025-05-16-release
172•Borkdude•17h ago•32 comments

Show HN: Visual flow-based programming for Erlang, inspired by Node-RED

https://github.com/gorenje/erlang-red
232•Towaway69•23h ago•96 comments

X X^t can be faster

https://arxiv.org/abs/2505.09814
185•robinhouston•22h ago•55 comments