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

Comments

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

Artemis II crew take “spectacular” image of Earth

https://www.bbc.com/news/articles/ce8jzr423p9o
418•andsoitis•4h ago•174 comments

Tell HN: Anthropic no longer allowing Claude Code subscriptions to use OpenClaw

92•firloop•1h ago•79 comments

Show HN: TinyOS – A minimalist RTOS for Cortex-M written in C

https://github.com/cmc-labo/tinyos-rtos
52•hpscript•2h ago•11 comments

iNaturalist

https://www.inaturalist.org/
310•bookofjoe•6h ago•90 comments

What changes when you turn a Linux box into a router

https://patrickmccanna.net/7-configuration-changes-that-turn-a-multi-homed-host-into-a-switch-rou...
85•0o_MrPatrick_o0•3d ago•23 comments

Fake Fans

https://www.wordsfromeliza.com/p/fake-fans
34•performative•1h ago•3 comments

Show HN: I built a frontpage for personal blogs

https://text.blogosphere.app/
623•ramkarthikk•11h ago•167 comments

Oracle Files H-1B Visa Petitions Amid Mass Layoffs

https://nationaltoday.com/us/tx/austin/news/2026/04/03/oracle-files-thousands-of-h-1b-visa-petiti...
310•kklisura•3h ago•175 comments

The house is a work of art: Frank Lloyd Wright

https://aeon.co/essays/frank-lloyd-wright-as-a-mirror-of-the-american-condition
20•midnightfish•1h ago•1 comments

We replaced RAG with a virtual filesystem for our AI documentation assistant

https://www.mintlify.com/blog/how-we-built-a-virtual-filesystem-for-our-assistant
204•denssumesh•1d ago•92 comments

Go on Embedded Systems and WebAssembly

https://tinygo.org/
120•uticus•7h ago•15 comments

Charge Robotics (YC S21) Is Hiring Software and Hardware Engineers

https://jobs.ashbyhq.com/charge-robotics
1•banks_h•2h ago

OpenClaw privilege-escalation bug

https://nvd.nist.gov/vuln/detail/CVE-2026-33579
220•kykeonaut•7h ago•149 comments

Extra usage credit for Claude to celebrate usage bundles launch (Pro, Max, Team)

https://support.claude.com/en/articles/14246053-extra-usage-credit-for-pro-max-and-team-plans
6•angst•40m ago•1 comments

How to Write Unmaintainable Code (1999)

https://www.doc.ic.ac.uk/%7Esusan/475/unmain.html
8•downbad_•44m ago•5 comments

How to Make a Sliding, Self-Locking, and Predator-Proof Chicken Coop Door (2020)

https://www.backyardchickens.com/articles/how-to-make-a-sliding-self-locking-and-predator-proof-c...
63•uticus•5h ago•35 comments

Iran strikes leave Amazon availability zones "hard down" in Bahrain and Dubai

https://www.bigtechnology.com/p/iran-strikes-leave-amazon-availability
100•upofadown•2h ago•52 comments

F-15E jet shot down over Iran

https://www.theguardian.com/world/2026/apr/03/us-fighter-jet-confirmed-shot-down-over-iran
340•tjwds•8h ago•785 comments

Age verification on Systemd and Flatpak

https://cybrkyd.com/post/age-verification-on-systemd-and-flatpak/
54•londonanon•4h ago•57 comments

Why are we still using Markdown?

https://bgslabs.org/blog/why-are-we-using-markdown/
40•veqq•6h ago•97 comments

A Taxonomy of Interiors

https://misfitsarchitecture.com/2026/03/29/a-taxonomy-of-interiors/
16•downweight•4d ago•0 comments

Async Python Is Secretly Deterministic

https://www.dbos.dev/blog/async-python-is-secretly-deterministic
59•KraftyOne•5h ago•26 comments

Build your own Dial-up ISP with a Raspberry Pi

https://www.jeffgeerling.com/blog/2026/build-your-own-dial-up-isp-with-a-raspberry-pi/
99•arjunbajaj•8h ago•22 comments

Run Linux containers on Android, no root required

https://github.com/ExTV/Podroid
7•politelemon•1h ago•1 comments

Automatic Textbook Formalization

https://github.com/facebookresearch/repoprover
25•tzury•3h ago•7 comments

DCJ11Hack+ – DEC PDP/11 based homebrew computer

https://codeberg.org/TechPaula/DCJ11HackPlus
18•zdw•3d ago•0 comments

Show HN: Mtproto.zig – High-performance Telegram proxy with DPI evasion

https://github.com/sleep3r/mtproto.zig
5•slp3r•2h ago•2 comments

April 2026 TLDR Setup for Ollama and Gemma 4 26B on a Mac mini

https://gist.github.com/greenstevester/fc49b4e60a4fef9effc79066c1033ae5
290•greenstevester•14h ago•111 comments

Bourbon waste could provide next-gen supercapacitor components

https://spectrum.ieee.org/supercapacitor-electrodes-bourbon-waste
5•prabal97•3d ago•1 comments

SSH certificates: the better SSH experience

https://jpmens.net/2026/04/03/ssh-certificates-the-better-ssh-experience/
206•jandeboevrie•14h ago•87 comments