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

Comments

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

AI Labs Are Solving the Power Problem

https://newsletter.semianalysis.com/p/how-ai-labs-are-solving-the-power
22•Symmetry•39m ago•4 comments

Efficient method to capture CO2 from the atmosphere / Univ of Helsinki

https://www.helsinki.fi/en/news/innovations/efficient-method-capture-carbon-dioxide-atmosphere-de...
14•lrasinen•31m ago•1 comments

Akin's Laws of Spacecraft Design [pdf]

https://www.ece.uvic.ca/~elec399/201409/Akin%27s%20Laws%20of%20Spacecraft%20Design.pdf
113•tosh•4h ago•16 comments

Claude wrote a functional NES emulator using my engine's API

https://carimbo.games/games/nintendo/
14•delduca•1h ago•11 comments

Fifteen Most Famous Transcendental Numbers

https://sprott.physics.wisc.edu/pickover/trans.html
26•vismit2000•1h ago•9 comments

Show HN: Use Claude Code to Query 600 GB Indexes over Hacker News, ArXiv, etc.

https://exopriors.com/scry
140•Xyra•6h ago•39 comments

Doom in Django: testing the limits of LiveView at 600.000 divs/segundo

https://en.andros.dev/blog/7b1b607b/doom-in-django-testing-the-limits-of-liveview-at-600000-divss...
74•andros•3d ago•20 comments

Tixl: Open-source realtime motion graphics

https://github.com/tixl3d/tixl
98•nateb2022•4d ago•15 comments

A super fast website using Cloudflare workers

https://crazyfast.website
26•kilroy123•3d ago•30 comments

A faster heart for F-Droid

https://f-droid.org/2025/12/30/a-faster-heart-for-f-droid.html
455•kasabali•19h ago•187 comments

Activeloop (YC S18) Is Hiring MTS – Back End Engineer

https://careers.activeloop.ai/?ashby_jid=d8c54147-5fc8-48ba-a097-a6ae046c42bd
1•davidbuniat•2h ago

Animated AI

https://animatedai.github.io/
234•frozenseven•5d ago•22 comments

Tell HN: Happy New Year

49•schappim•1h ago•33 comments

Show HN: 22 GB of Hacker News in SQLite

https://hackerbook.dosaygo.com
601•keepamovin•21h ago•183 comments

FediMeteo: A €4 FreeBSD VPS Became a Global Weather Service

https://it-notes.dragas.net/2025/02/26/fedimeteo-how-a-tiny-freebsd-vps-became-a-global-weather-s...
341•birdculture•19h ago•82 comments

The rise of industrial software

https://chrisloy.dev/post/2025/12/30/the-rise-of-industrial-software
134•chrisloy•5h ago•112 comments

Back to the future: the story of Squeak, a practical Smalltalk written in itself [pdf] (1997)

http://www.vpri.org/pdf/tr1997001_backto.pdf
9•fanf2•6d ago•2 comments

Honey's Dieselgate: Detecting and tricking testers

https://vptdigital.com/blog/honey-detecting-testers/
292•AkshatJ27•16h ago•108 comments

'Three norths' alignment about to end

https://www.spatialsource.com.au/three-norths-alignment-about-to-end/
41•altilunium•6d ago•18 comments

Show HN: I built a universal clipboard that syncs realtime on multiple devices

https://www.quickclip.space/
27•imgopaal•3h ago•36 comments

Readings in Database Systems (5th Edition) (2015)

http://www.redbook.io/
114•teleforce•12h ago•10 comments

Odin: Moving Towards a New "core:OS"

https://odin-lang.org/news/moving-towards-a-new-core-os/
91•ksec•5d ago•48 comments

A Vulnerability in Libsodium

https://00f.net/2025/12/30/libsodium-vulnerability/
296•raggi•21h ago•40 comments

Loss32: Let's Build a Win32/Linux

https://loss32.org/
309•akka47•1d ago•399 comments

OpenAI's cash burn will be one of the big bubble questions of 2026

https://www.economist.com/leaders/2025/12/30/openais-cash-burn-will-be-one-of-the-big-bubble-ques...
420•1vuio0pswjnm7•16h ago•586 comments

Non-Zero-Sum Games

https://nonzerosum.games/
402•8organicbits•1d ago•180 comments

The Organists Improvising Soundtracks to Silent Films

https://www.newyorker.com/magazine/2025/12/29/the-organists-improvising-soundtracks-to-silent-films
16•fortran77•4d ago•3 comments

Mitsubishi Diatone D-160 (1985)

https://audio-database.com/MITSUBISHI-DIATONE/diatonesp/d-160-e.html
66•anigbrowl•2d ago•24 comments

No strcpy either

https://daniel.haxx.se/blog/2025/12/29/no-strcpy-either/
227•firesteelrain•1d ago•122 comments

Electrolysis can solve one of our biggest contamination problems

https://ethz.ch/en/news-and-events/eth-news/news/2025/11/electrolysis-can-solve-one-of-our-bigges...
172•PaulHoule•20h ago•52 comments