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.

DaVinci Resolve releases Photo Editor

https://www.blackmagicdesign.com/products/davinciresolve/photo
412•thebiblelover7•5h ago•96 comments

Can Claude Fly a Plane?

https://so.long.thanks.fish/can-claude-fly-a-plane/
44•casi•1h ago•31 comments

A new spam policy for "back button hijacking"

https://developers.google.com/search/blog/2026/04/back-button-hijacking
248•zdw•4h ago•130 comments

Someone bought 30 WordPress plugins and planted a backdoor in all of them

https://anchor.host/someone-bought-30-wordpress-plugins-and-planted-a-backdoor-in-all-of-them/
885•speckx•13h ago•248 comments

Sometimes powerful people just do dumb shit

https://www.joanwestenberg.com/sometimes-powerful-people-just-do-dumb-shit/
161•zdw•4h ago•76 comments

Roblox devs now need a subscription to share their games freely

https://devforum.roblox.com/t/new-publishing-requirements-evaluation-process-for-games/4573166
29•hallole•1h ago•7 comments

Distributed DuckDB Instance

https://github.com/citguru/openduck
24•citguru•1h ago•5 comments

GitHub Stacked PRs

https://github.github.com/gh-stack/
657•ezekg•10h ago•353 comments

The Shinkansen

https://www.worksinprogress.news/p/the-secret-behind-japans-railways
12•WillDaSilva•53m ago•0 comments

TanStack Start Now Support React Server Components

https://tanstack.com/blog/react-server-components
34•polywock•2h ago•26 comments

Lean proved this program correct; then I found a bug

https://kirancodes.me/posts/log-who-watches-the-watchers.html
219•bumbledraven•7h ago•113 comments

WiiFin – Jellyfin Client for Nintendo Wii

https://github.com/fabienmillet/WiiFin
136•throwawayk7h•8h ago•61 comments

Multi-Agentic Software Development Is a Distributed Systems Problem

https://kirancodes.me/posts/log-distributed-llms.html
16•tie-in•2h ago•3 comments

Design and implementation of DuckDB internals

https://duckdb.org/library/design-and-implementation-of-duckdb-internals/
103•mpweiher•3d ago•8 comments

Nothing Ever Happens: Polymarket bot that always buys No on non-sports markets

https://github.com/sterlingcrispin/nothing-ever-happens
406•m-hodges•16h ago•222 comments

A soft robot has no problem moving with no motor and no gears

https://engineering.princeton.edu/news/2026/04/08/soft-robot-has-no-problem-moving-no-motor-and-n...
11•hhs•4d ago•0 comments

Rust Threads on the GPU

https://www.vectorware.com/blog/threads-on-gpu/
49•PaulHoule•4d ago•15 comments

Anastasia (1997) live action reference material

https://lostmediawiki.com/Anastasia_(partially_found_live-action_reference_material_for_Don_Bluth...
16•hyperific•3d ago•3 comments

US appeals court declares 158-year-old home distilling ban unconstitutional

https://nypost.com/2026/04/11/us-news/us-appeals-court-declares-158-year-old-home-distilling-ban-...
377•t-3•17h ago•251 comments

N-Day-Bench – Can LLMs find real vulnerabilities in real codebases?

https://ndaybench.winfunc.com
59•mufeedvh•9h ago•15 comments

Write less code, be more responsible

https://blog.orhun.dev/code-responsibly/
75•orhunp_•2d ago•45 comments

Make tmux pretty and usable (2024)

https://hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
361•speckx•16h ago•225 comments

How to make Firefox builds 17% faster

https://blog.farre.se/posts/2026/04/10/caching-webidl-codegen/
166•mbitsnbites•12h ago•32 comments

I shipped a transaction bug, so I built a linter

https://leonh.fr/posts/go-transaction-linter/
33•leonhfr•3d ago•4 comments

Building a CLI for all of Cloudflare

https://blog.cloudflare.com/cf-cli-local-explorer/
294•soheilpro•15h ago•98 comments

Math Is Still Catching Up to the Mysterious Genius of Srinivasa Ramanujan (2024)

https://www.quantamagazine.org/srinivasa-ramanujan-was-a-genius-math-is-still-catching-up-20241021/
52•paulpauper•2h ago•6 comments

UpDown: Efficient Manycore based on Many Threading & Scalable Memory Parallelism

https://people.cs.uchicago.edu/~aachien/lssg/research/10x10/ics26-single-chip-updown.pdf
8•matt_d•2h ago•1 comments

A name is succession, legacy and celebration in Japan's Kabuki theater

https://apnews.com/article/kabuki-name-succession-japan-tradition-theater-d1e9621bc91385498314f36...
4•mooreds•3d ago•0 comments

Android now stops you sharing your location in photos

https://shkspr.mobi/blog/2026/04/android-now-stops-you-sharing-your-location-in-photos/
353•edent•19h ago•295 comments

I just want simple S3

https://blog.feld.me/posts/2026/04/i-just-want-simple-s3/
155•g0xA52A2A•2d ago•82 comments