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.

MiMo Code Is Now Released and Open-Source

https://mimo.xiaomi.com/mimocode
52•apeters•48m ago•24 comments

Lines of Code Got a Better Publicist

https://curlewis.co.nz/posts/lines-of-code-got-a-better-publicist/
186•RyeCombinator•2h ago•107 comments

Nextcloud Hub 26 Spring: Built together, designed for the future

https://nextcloud.com/blog/nextcloud-hub26-spring/
43•doener•58m ago•10 comments

MapComplete – Contibute to OpenStreetMaps

https://mapcomplete.org/
43•GTP•1h ago•5 comments

Pokémon Go Scans Trained the Navigation Tech for Military Drones

https://dronexl.co/2026/06/09/pokemon-go-scans-niantic-vantor-military-drone-navigation/
535•vrganj•8h ago•243 comments

Open Reproduction of DeepSeek-R1

https://github.com/huggingface/open-r1
54•yogthos•2h ago•7 comments

US-Canada border library gets new Quebec-only entrance

https://www.bbc.com/news/videos/clyrvrde160o
75•NalNezumi•1h ago•47 comments

Workers are spending over 6 hours a week botsitting AI, fueling job frustration

https://www.businessinsider.com/botsitting-ai-hidden-human-labor-at-work-2026-6
135•ZeidJ•1h ago•83 comments

Why Thermodynamics Rules Future Orbital Data Centers

https://spectrum.ieee.org/orbital-data-centers-heat
15•rbanffy•1h ago•6 comments

AI agent runs amok in Fedora and elsewhere

https://lwn.net/SubscriberLink/1077035/c7e7c14fbd60fae9/
506•tanelpoder•15h ago•229 comments

Web Browsers on Video Game Consoles

https://vale.rocks/posts/game-console-browsers
111•robin_reala•6h ago•56 comments

Queues Don't Fix Overload (2014)

https://ferd.ca/queues-don-t-fix-overload.html
5•locknitpicker•2d ago•0 comments

Cybersecurity researchers aren't happy about the guardrails on Anthropic's Fable

https://techcrunch.com/2026/06/10/cybersecurity-researchers-arent-happy-about-the-guardrails-on-a...
540•speckx•22h ago•470 comments

πFS

https://github.com/philipl/pifs
883•helterskelter•20h ago•197 comments

Build a Basic AI Agent from Scratch: Long Task Planning

https://medium.com/@rogi23696/build-a-basic-ai-agent-from-scratch-long-task-planning-14e803f9bd6d
96•ruxudev•2d ago•35 comments

Anthropic requires 30 day data retention for Fable and Mythos

https://support.claude.com/en/articles/15425996-data-retention-practices-for-mythos-class-models
558•lebovic•1d ago•282 comments

Amazon Says Its Data Centers Use 2.5B Gallons of Water

https://www.bloomberg.com/news/articles/2026-06-11/amazon-says-its-data-centers-use-2-5-billion-g...
15•1vuio0pswjnm7•17m ago•7 comments

Supporting Exchange and beyond

https://brendan.abolivier.bzh/exchange-pt-2/
7•babolivier•2d ago•0 comments

Linux latency measurements and compositor tuning

https://farnoy.dev/posts/linux-latency
93•GalaxySnail•2d ago•27 comments

I'm Eric Ries, author of "The Lean Startup" and new book "Incorruptible" – AMA

746•eries•1d ago•515 comments

AMD Gaslights Security Researcher, Changes Rules Retroactively [video]

https://www.youtube.com/watch?v=4HjWHNLRMB0
12•SockThief•40m ago•3 comments

Reverse engineering the Creative Katana soundbar to control it from Linux

https://blog.nns.ee/2026/02/20/katana-v2x-re/
119•theanonymousone•4d ago•9 comments

Why AI hasn't replaced software engineers, and won't

https://www.normaltech.ai/p/why-ai-hasnt-replaced-software-engineers
169•trueduke•7h ago•192 comments

Starfish by Peter Watts (1999)

https://www.rifters.com/real/STARFISH.htm#prelude
108•zetalyrae•2d ago•41 comments

Euro-Office: First version of the open-source web office is here

https://www.heise.de/en/news/Euro-Office-First-version-of-the-open-source-web-office-is-here-1132...
22•doener•1h ago•8 comments

Sequoyah’s syllabary created a written language for the Cherokee

https://www.smithsonianmag.com/innovation/man-created-written-language-cherokee-did-efficiently-e...
183•grahambargeron•17h ago•113 comments

PgDog is funded and coming to a database near you

https://pgdog.dev/blog/our-funding-announcement
514•levkk•1d ago•244 comments

The Economics of Speculative Decoding

https://fergusfinn.com/blog/economics-of-speculative-decoding/
17•kkm•2d ago•3 comments

Sweet Jeebus, macOS 27 Golden Gate Removes the Dumb Icons from Menu Items

https://daringfireball.net/2026/06/macos_27_golden_gate_removes_the_dumb_icons_from_menu_items
251•epaga•7h ago•112 comments

How JPL keeps the 13-year-old Curiosity rover doing science

https://spectrum.ieee.org/curiosity-rover-jpl-mars-science
263•pseudolus•21h ago•78 comments