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

Comments

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

The RAM Shortage Comes for Us All

https://www.jeffgeerling.com/blog/2025/ram-shortage-comes-us-all
60•speckx•27m ago•43 comments

Multivox: Volumetric Display

https://github.com/AncientJames/multivox
73•jk_tech•2h ago•10 comments

Transparent leadership beats servant leadership

https://entropicthoughts.com/transparent-leadership-beats-servant-leadership
262•ibobev•6h ago•122 comments

It’s time to free JavaScript (2024)

https://javascript.tm/letter
563•pavelai•10h ago•297 comments

Why are 38 percent of Stanford students saying they're disabled?

https://reason.com/2025/12/04/why-are-38-percent-of-stanford-students-saying-theyre-disabled/
103•delichon•1h ago•142 comments

Feynman vs. Computer

https://entropicthoughts.com/feynman-vs-computer
32•cgdl•3h ago•16 comments

Launch HN: Browser Buddy (YC W24) – A recommendation system for Internet writing

https://www.browserbuddy.com/
25•alien0006•2h ago•22 comments

I ignore the spotlight as a staff engineer

https://lalitm.com/software-engineering-outside-the-spotlight/
334•todsacerdoti•8h ago•140 comments

Show HN: Onlyrecipe 2.0 – I added all features HN requested – 4 years later

https://onlyrecipeapp.com/?url=https://www.allrecipes.com/turkish-pasta-recipe-8754903
63•AwkwardPanda•4h ago•50 comments

Functional Quadtrees

https://lbjgruppen.com/en/posts/functional-quadtree-clojure
92•lbj•6h ago•33 comments

Converge (YC S23) is hiring a martech expert in NYC

https://www.runconverge.com/careers/technical-customer-success-manager
1•janhenr•2h ago

The long wait is over, Ganymede has arrived

https://endeavouros.com/news/the-long-wait-is-over-ganymede-has-arrived/
18•doener•4d ago•19 comments

A lost Amazon world just reappeared in Bolivia

https://www.sciencedaily.com/releases/2025/11/251130205421.htm
76•ashishgupta2209•3d ago•16 comments

PGlite – Embeddable Postgres

https://pglite.dev/
431•dsego•8h ago•96 comments

Fighting the age-gated internet

https://www.wired.com/story/age-verification-is-sweeping-the-us-activists-are-fighting-back/
74•geox•6h ago•72 comments

RAM is so expensive, Samsung won't even sell it to Samsung

https://www.pcworld.com/article/2998935/ram-is-so-expensive-samsung-wont-even-sell-it-to-samsung....
277•sethops1•6h ago•258 comments

Show HN: Chess on a Donut/Torus and Deep-Dive

https://mchess.io/donut
9•mannymakes•5d ago•0 comments

PyTogether: Collaborative lightweight real-time Python IDE for teachers/learners

https://github.com/SJRiz/pytogether
10•indigodaddy•2h ago•0 comments

Microsoft drops AI sales targets in half after salespeople miss their quotas

https://arstechnica.com/ai/2025/12/microsoft-slashes-ai-sales-growth-targets-as-customers-resist-...
231•OptionOfT•4h ago•178 comments

Bootloader Unlock Wall of Shame

https://github.com/zenfyrdev/bootloader-unlock-wall-of-shame
104•thunderbong•3h ago•43 comments

What Is "Open Recursion"?

https://journal.stuffwithstuff.com/2013/08/26/what-is-open-recursion/
31•andsoitis•2d ago•6 comments

The differences between an IndyCar and a F1 car

https://www.openwheelworld.net/en/indycar101/76/IndyCar_vs_Formula_1_cars
88•1659447091•3d ago•79 comments

Uncloud - Tool for deploying containerised apps across servers without k8s

https://uncloud.run/
300•rgun•13h ago•131 comments

Show HN: MTXT – Music Text Format

https://github.com/Daninet/mtxt
82•daninet•4d ago•32 comments

Tunnl.gg

https://tunnl.gg
105•klipitkas•9h ago•65 comments

Show HN: Walrus – a Kafka alternative written in Rust

https://github.com/nubskr/walrus
121•janicerk•3d ago•36 comments

Building optimistic UI in Rails (and learn custom elements)

https://railsdesigner.com/custom-elements/
71•amalinovic•8h ago•9 comments

Proxmox Datacenter Manager 1.0 available

https://www.proxmox.com/en/about/company-details/press-releases/proxmox-datacenter-manager-1-0
85•speckx•4h ago•23 comments

Autism should not be treated as a single condition

https://www.economist.com/science-and-technology/2025/12/03/why-autism-should-not-be-treated-as-a...
97•bookofjoe•3h ago•141 comments

Unreal Tournament 2004 is back

https://old.reddit.com/r/unrealtournament/comments/1pdbe69/breaking_unreal_tournament_2004_is_back/
395•keithoffer•9h ago•167 comments