frontpage.
newsnewestaskshowjobs

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.

I like 'em thick: an apology to my English teachers

https://www.experimental-history.com/p/i-like-em-thick
220•Ariarule•2d ago•73 comments

AliExpress runs silent WebAudio fingerprinting that breaks Bluetooth multipoint

https://blog.laserphile.com/2026/08/aliexpress-webpage-keeping-multipoint.html
636•emctech•7h ago•216 comments

HTML Can Do That

https://chrisburnell.com/html-can-do-that/
245•encyclopedism•1d ago•60 comments

Show HN: I trained a 125M model to autocomplete piano on-device

https://simedw.com/2026/08/20/midi-autocomplete/
345•simedw•5h ago•82 comments

CIA funding helped keep NeXT afloat in the 80s

https://www.wsj.com/tech/steve-jobs-apple-next-cia-161b65f9?st=NWWds1&reflink=desktopwebshare_per...
160•EwanG•17h ago•84 comments

Malicious Rust crate Arrayref runs a build-time payload

https://safedep.io/arrayref-proc-macro1-rust-build-time-malware/
254•abhisek•4h ago•202 comments

Sixtyfour (YC P25) Is Hiring

https://www.ycombinator.com/companies/sixtyfour/jobs/39SkSrA-software-engineering-intern
1•HPMOR•34m ago

Linux 7.2 Released

https://www.igalia.com/2026/08/19/Linux-72-Released.html
29•mariuz•1h ago•1 comments

DiffusionGemma Technical Report

https://arxiv.org/abs/2608.00146
90•gmays•4h ago•14 comments

Clean up Claude 5's token vomit with a separate LLM

https://github.com/zachahn/vomit
82•Bluestein•2h ago•67 comments

How to compromise your system with a job interview

https://www.codedge.de/posts/how-to-compromise-your-system-with-a-job-interview
41•codedge•1h ago•15 comments

Generic Methods in Go 1.27

https://dominik.info/blog/go-generic-methods
26•EspressoGPT•1h ago•5 comments

Xorg-Server 26.0.99.901

https://lists.x.org/archives/xorg-announce/2026-August/003741.html
72•st_goliath•4h ago•24 comments

Anti-AI fonts are useless and harmful

https://blog.yaros.ae/anti-ai-fonts-are-useless-and-harmful/
43•speckx•2h ago•26 comments

Hacking with Claude on a $27 Smart Watch

https://www.mikekasberg.com/blog/2026/08/19/hacking-with-claude-on-a-27-smart-watch.html
53•speckx•3h ago•29 comments

Mojo is now open source

https://www.modular.com/blog/mojo-open-source
242•visheshdembla•2d ago•60 comments

Launch HN: Vendo (YC S26) – Let users build features on top of your product

https://github.com/runvendo/vendo
18•yousefh409•2h ago•7 comments

A theory for decades of C vulnerabilities

https://strawberry9.github.io/the-wrong-memory/Appendix_02.html
25•SilentLambda•3d ago•3 comments

An elliptic curve of rank ≥ 30

https://elliptic-rank.icarm.cloud/curve/273
49•robinhouston•3h ago•14 comments

Git at any scale

https://cursor.com/blog/git-at-any-scale
150•meetpateltech•2d ago•22 comments

Every Model Cheats

https://dreadnode.io/research/every-model-cheats-prompt-level-mitigation-of-cheating-on-offensive...
41•vga805•3h ago•23 comments

Windows brings out the Rorschach test in everyone (2003)

https://devblogs.microsoft.com/oldnewthing/20030825-00/?p=42803
317•luu•11h ago•114 comments

Double-double: 31 digits of precision without leaving the FPU

https://marekfiser.com/blog/double-double-arithmetic/
29•iliketrains•3d ago•4 comments

Show HN: Open-source Stripe Connect alternative

https://zoneless.com
29•tinyprojects•2h ago•17 comments

Show HN: Check if any of the $656M in unclaimed royalties at The MLC is yours

https://pub.doub.ly/
38•knaught•2h ago•20 comments

Nearly 1,400 live streams from Japan

https://tomarigi.me/
64•pajop•2d ago•13 comments

Bun 1.4

https://bun.com/blog/bun-v1.4
167•meetpateltech•3h ago•91 comments

Why the Ocean Cleanup hasn't solved the plastic pollution crisis

https://therevelator.org/why-ocean-cleanup-has-not-solved-plastic-pollution/
72•sohkamyung•4h ago•62 comments

Stop Anthropomorphizing Intermediate Tokens as Reasoning/Thinking Traces

https://arxiv.org/abs/2504.09762
133•nunodonato•1d ago•49 comments

Theory of Fluids Enters the 21st Century

https://www.quantamagazine.org/theory-of-fluids-enters-the-21st-century-20260817/
51•librasteve•3d ago•3 comments