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.

SQLite is all you need for durable workflows

https://obeli.sk/blog/sqlite-is-all-you-need-for-durable-workflows/
508•tomasol•14h ago•255 comments

Algebraic Effects for the Rest of Us

https://overreacted.io/algebraic-effects-for-the-rest-of-us/
32•satvikpendem•3d ago•13 comments

Snowboard Kids 2 is 100% Decompiled

https://blog.chrislewis.au/snowboard-kids-2-is-100-decompiled/
182•GaggiX•3d ago•68 comments

Notes from the Mistral AI Now Summit

https://koenvangilst.nl/lab/mistral-ai-now-summit
362•vnglst•16h ago•145 comments

Perry Compiles TypeScript directly to executables using SWC and LLVM

https://www.perryts.com/
83•0x1997•5h ago•64 comments

What It Takes to Preserve Floppy Disks

https://spectrum.ieee.org/floppy-disk-data-preservation-archives
39•pseudolus•2d ago•9 comments

Print with dozens of colors: Our new open-source ColorMix for PrusaSlicer

https://blog.prusa3d.com/our-new-open-source-colormix-model-in-prusaslicer-and-easyprint_136079/
145•rented_mule•3d ago•27 comments

A new register allocator for ZJIT

https://railsatscale.com/2026-05-27-a-new-register-allocator-for-zjit/
30•tenderlove•2d ago•1 comments

MCP is dead?

https://www.quandri.io/engineering-blog/mcp-is-dead
210•nadis•9h ago•178 comments

Naphtha shortages in Japan

https://www.nippon.com/en/japan-data/h02783/
104•takakaze•6h ago•66 comments

Shift will clean homes for free to train future robots

https://www.theverge.com/ai-artificial-intelligence/939765/ai-training-data-startup-shift-free-cl...
135•evilsimon•13h ago•187 comments

It's hard to justify buying a Framework 12

https://www.jeffgeerling.com/blog/2026/its-hard-to-justify-framework-12/
286•watermelon0•17h ago•475 comments

The dead economy theory

https://www.owenmcgrann.com/p/the-dead-economy-theory
957•WillDaSilva•16h ago•1109 comments

Citing 'severe' math deficits, UC faculty demand a return to SAT tests for STEM

https://www.latimes.com/california/story/2026-05-27/uc-math-professors-demand-return-of-sat-for-s...
582•brandonb•1d ago•779 comments

The Last Technical Interview

https://steve-yegge.medium.com/the-last-technical-interview-bc13ddcf4564
109•headalgorithm•12h ago•81 comments

Ho-scale slot car racing in the Santa Cruz Mountains

https://stewartraceway.org/
6•HoldOnAMinute•3d ago•1 comments

Show HN: Tiny-vLLM – high performance LLM inference engine in C++ and CUDA

https://github.com/jmaczan/tiny-vllm
138•yu3zhou4•12h ago•12 comments

Show HN: Open-source private home security camera system (end-to-end encryption)

https://github.com/secluso/core
57•arrdalan•10h ago•14 comments

Liquid AI reveals 8B-A1B MoE trained on 38T

https://www.liquid.ai/blog/lfm2-5-8b-a1b
183•simjnd•16h ago•70 comments

Bijou64: A variable-length integer encoding

https://www.inkandswitch.com/tangents/bijou64/
224•justinweiss•17h ago•79 comments

Is AI causing a repeat of frontend’s lost decade?

https://mastrojs.github.io/blog/2026-05-23-is-AI-causing-a-repeat-of-frontends-lost-decade/
340•xyzal•21h ago•291 comments

OpenRCT2 v0.5.1 "Swamp Castle" released Last version to support Windows 7

https://openrct2.io/blog/2026/05/openrct2-v0.5.1-released
6•jandeboevrie•2h ago•0 comments

On Rendering Diffs

https://pierre.computer/writing/on-rendering-diffs
169•amadeus•13h ago•55 comments

Math-to-Manim

https://github.com/HarleyCoops/Math-To-Manim
47•georgewsinger•2d ago•6 comments

What Is a Dickover?

https://daringfireball.net/2026/05/what_is_a_dickover
314•tambourine_man•8h ago•122 comments

The mysterious Hy3 LLM is topping OpenRouter Model Rankings by a large margin

https://minimaxir.com/2026/05/openrouter-hy3/
127•freediver•1d ago•103 comments

Danish pension fund excludes SpaceX citing governance and valuation

https://www.reuters.com/legal/transactional/danish-pension-fund-excludes-spacex-citing-governance...
7•vrganj•32m ago•0 comments

You can just say it

https://noperator.dev/posts/you-can-just-say-it/
318•antirez•16h ago•164 comments

Ember.js 7.0

https://blog.emberjs.com/ember-released-7-0/
64•satvikpendem•8h ago•16 comments

GTA 6 Developers Unionize

https://rockstarintel.com/gta-6-developers-announce-rockstar-games-union/
671•AndrewKemendo•16h ago•451 comments