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•1y ago

Comments

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

MAI-Code-1-Flash

https://microsoft.ai/news/introducingmai-code-1-flash/
363•EvanZhouDev•5h ago•165 comments

Use your Nvidia GPU's VRAM as swap space on Linux

https://github.com/c0dejedi/nbd-vram
55•tanelpoder•1h ago•7 comments

CT scans of BYD car parts

https://www.lumafield.com/scan-of-the-month/byd
172•viasfo•3h ago•72 comments

California’s university system went all in on AI, now it's tearing itself apart

https://www.nytimes.com/2026/06/01/magazine/ai-university-college-california.html
62•jeffwass•16h ago•39 comments

4K years ago, Mohenjo-daro grew more equal over time

https://archaeologymag.com/2026/05/mohenjo-daro-grew-more-equal-over-time/
26•marojejian•1h ago•6 comments

Gmail thinks I'm stupid, so I left

https://moddedbear.com/gmail-thinks-im-stupid-so-i-left
549•speckx•4h ago•338 comments

My thoughts after using Clojure for about a month

https://www.acdw.net/clojure/
82•speckx•4h ago•32 comments

Open Repair Data Standard – Open Repair Alliance

https://openrepair.org/open-data/open-standard/
83•cassepipe•4h ago•2 comments

A walking tour of surveillance infrastructure in Seattle (2020)

https://coveillance.org/a-walking-tour-of-surveillance-infrastructure-in-seattle/
367•eustoria•10h ago•227 comments

Adafruit receives demand letter from Fenwick legal counsel on behalf of Flux.ai

https://blog.adafruit.com/
599•semanser•14h ago•246 comments

How we index images for RAG

https://www.kapa.ai/blog/how-we-index-images-for-rag
79•mooreds•7h ago•8 comments

HP re-releases classic computer science calculator: The HP-16C

https://hpcalcs.com/product/hp-16c-collectors-edition/
106•dm319•5h ago•67 comments

Now AI agents need what RSS does

https://julienreszka.com/blog/rss-is-back-ai-agents-are-reading-it/
44•julienreszka•3h ago•19 comments

Gleam v1.17.0

https://gleam.run/news/single-file-gleam-beam-programs-with-escript/
68•figbert•1h ago•4 comments

Trump signs downsized AI order after weeks of reversals

https://www.politico.com/news/2026/06/02/trump-signs-downsized-ai-order-00946389
161•_alternator_•7h ago•112 comments

Npm-scan: Modern supply chain security for the npm ecosystem

https://github.com/lateos-ai/npm-scan
9•lateos-ai•1d ago•0 comments

The advertising cartel coming to your web browser

https://blog.zgp.org/the-advertising-cartel-coming-to-your-web-browser/
116•speckx•4h ago•34 comments

MP3s from Google Drive in Music Assistant on Home Assistant

https://blog.tomayac.com/2026/05/30/your-mp3s-from-google-drive-in-music-assistant-on-home-assist...
14•tomayac•3d ago•3 comments

Multicore suppport for DOS is real – partly

https://www.vogons.org/viewtopic.php?t=111336
49•beebix•2d ago•9 comments

Why Janet? (2023)

https://ianthehenry.com/posts/why-janet/
422•yacin•14h ago•227 comments

QBE – Compiler Backend – 1.3

https://c9x.me/compile/release/qbe-1.3.html
71•birdculture•6h ago•24 comments

Bringing Up DeepSeek-V4-Flash on AMD MI300X

https://fergusfinn.com/blog/deepseek-v4-flash-mi300x/
72•kkm•6h ago•6 comments

Expanding Project Glasswing

https://www.anthropic.com/news/expanding-project-glasswing
152•surprisetalk•10h ago•196 comments

Age verification for social media, the beginning of the end for a free internet?

https://mullvad.net/en/blog/age-verification-for-social-media-the-beginning-of-the-end-for-a-free...
460•StrLght•1d ago•364 comments

Show HN: Paseo – Beautiful open-source coding agent interface

https://github.com/getpaseo/paseo
10•timhigins•1h ago•4 comments

Show HN: Live breath detection and biofeedback from a phone microphone

https://github.com/shiihaa-app/shiihaa-breath-detection
20•felixzeller•8h ago•9 comments

Preparing for KDE Plasma's Last X11-Supported Release

https://blog.davidedmundson.co.uk/blog/596/
136•jandeboevrie•9h ago•168 comments

Fidonet: Technology, Use, Tools, and History (1993)

https://www.fidonet.org/inet92_Randy_Bush.txt
143•BruceEel•10h ago•57 comments

Love systemd timers

https://blog.tjll.net/you-dont-love-systemd-timers-enough/
337•yacin•14h ago•218 comments

Great Question (YC W21) Is Hiring Applied AI Interns

https://www.ycombinator.com/companies/great-question/jobs/J5TNvQH-ai-engineer-intern
1•nedwin•12h ago