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

Comments

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

Somebody used spoofed ADSB signals to raster the meme of JD Vance

https://alecmuffett.com/article/143548
324•wubin•3h ago•83 comments

The UK paid £4.1M for a bookmarks site

https://mahadk.com/posts/ai-skills-hub
162•JustSkyfall•2h ago•48 comments

Ross Stevens Donates $100M to Pay Every US Olympian and Paralympian $200k

https://www.townandcountrymag.com/leisure/sporting/a70171886/ross-stevens-american-olympians-dona...
48•bookofjoe•1h ago•19 comments

Please Don't Say Mean Things about the AI I Just Invested a Billion Dollars In

https://www.mcsweeneys.net/articles/please-dont-say-mean-things-about-the-ai-that-i-just-invested...
238•randycupertino•1h ago•75 comments

Trinity large: An open 400B sparse MoE model

https://www.arcee.ai/blog/trinity-large
96•linolevan•1d ago•30 comments

Airfoil (2024)

https://ciechanow.ski/airfoil/
357•brk•10h ago•48 comments

Did a celebrated researcher obscure a baby's poisoning?

https://www.newyorker.com/magazine/2026/02/02/did-a-celebrated-researcher-obscure-a-fatal-poisoning
81•littlexsparkee•1d ago•15 comments

Show HN: A MitM proxy to see what your LLM tools are sending

https://github.com/jmuncor/sherlock
77•jmuncor•6h ago•30 comments

Mousefood – Build embedded terminal UIs for microcontrollers

https://github.com/ratatui/mousefood
156•orhunp_•7h ago•39 comments

Bf-Tree: modern read-write-optimized concurrent larger-than-memory range index

https://github.com/microsoft/bf-tree
30•SchwKatze•3h ago•5 comments

Android's desktop interface leaks

https://9to5google.com/2026/01/27/android-desktop-leak/
151•thunderbong•21h ago•231 comments

Oban, the job processing framework from Elixir, has come to Python

https://www.dimamik.com/posts/oban_py/
174•dimamik•8h ago•75 comments

Hellenistic War-Elephants and the Use of Alcohol Before Battle

https://www.cambridge.org/core/journals/classical-quarterly/article/hellenistic-warelephants-and-...
25•perihelions•5d ago•9 comments

Computer History Museum Launches Digital Portal to Its Collection

https://computerhistory.org/press-releases/computer-history-museum-launches-digital-portal-to-its...
100•ChrisArchitect•7h ago•18 comments

Show HN: The HN Arcade

https://andrewgy8.github.io/hnarcade/
300•yuppiepuppie•14h ago•78 comments

World Models

https://ankitmaloo.com/world-models/
8•ankit219•3d ago•1 comments

Jellyfin LLM/"AI" Development Policy

https://jellyfin.org/docs/general/contributing/llm-policies/
141•mmoogle•3h ago•66 comments

Spinning around: Please don't – Common problems with spin locks

https://www.siliceum.com/en/blog/post/spinning-around/
73•bdash•8h ago•27 comments

In a genre where spoilers are devastating, how do we talk about puzzle games?

https://thinkygames.com/features/in-a-genre-where-information-is-sacred-and-spoilers-are-devastat...
33•tobr•5d ago•21 comments

Microsoft forced me to switch to Linux

https://www.himthe.dev/blog/microsoft-to-linux
1565•bobsterlobster•10h ago•1252 comments

I overengineered a spinning top [video]

https://www.youtube.com/watch?v=Wp5NodfvvF4
118•bane•5d ago•38 comments

Show HN: Cursor for Userscripts

https://github.com/chebykinn/browser-code
37•mifydev•5h ago•12 comments

Amazon cuts 16k jobs

https://www.reuters.com/legal/litigation/amazon-cuts-16000-jobs-globally-broader-restructuring-20...
496•DGAP•9h ago•690 comments

3D-Printed Mathematical Lampshades

https://hessammehr.github.io/blog/posts/2025-12-24-maths-to-lampshade.html
50•hessammehr•4d ago•21 comments

Some notes on starting to use Django

https://jvns.ca/blog/2026/01/27/some-notes-on-starting-to-use-django/
192•ingve•1d ago•107 comments

Show HN: SHDL – A minimal hardware description language built from logic gates

https://github.com/rafa-rrayes/SHDL
29•rafa_rrayes•13h ago•13 comments

How to turn 'sfo-jfk' into a suitable photo

https://www.approachwithalacrity.com/how-to-turn-sfo-jfk-into-a-beautiful-photo/
21•bblcla•5h ago•21 comments

Amazon One palm authentication discontinued

https://amazonone.aws.com/help
59•KerryJones•8h ago•118 comments

There's only one Woz, but we can all learn from him

https://www.fastcompany.com/91477114/steve-wozniak-woz-apple-the-tech-interactive-humanitarian-award
309•coloneltcb•5d ago•146 comments

The First Eighteen Lines of the Waste Land (1989)

https://yalereview.org/article/hecht-eliot-waste-land
46•benbreen•5d ago•28 comments