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.

Espionage Against the European Parliament

https://citizenlab.ca/research/member-of-committee-investigating-spyware-hacked-with-pegasus/
178•ledoge•2h ago•42 comments

SearXNG: A free internet metasearch engine

https://github.com/searxng/searxng
70•theanonymousone•2h ago•18 comments

Africans Are Turning to Starlink

https://www.economist.com/middle-east-and-africa/2026/07/02/africans-are-turning-to-starlink
47•bookofjoe•1h ago•26 comments

The Demoralization of the White-Collar Worker

https://nooneshappy.com/article/the-demoralization-of-the-white-collar-worker/
18•njrc•48m ago•4 comments

Jamesob's guide to running SOTA LLMs locally

https://github.com/jamesob/local-llm
238•livestyle•7h ago•114 comments

FreeBSD ate my RAM

https://crocidb.com/post/freebsd-ate-my-ram/
66•theanonymousone•3h ago•24 comments

Applied Category Theory Course (2018)

https://math.ucr.edu/home/baez/act_course/index.html
19•measurablefunc•1h ago•0 comments

Kagi Changelog (July 2): Heads, tails, and an AI toggle

https://kagi.com/changelog#10959
40•mroche•2h ago•8 comments

Infracost (YC W21) Is Hiring a Marketing Lead to Shift FinOps Left

https://www.ycombinator.com/companies/infracost/jobs/YTJcFwr-marketing-lead
1•akh•1h ago

Goodbye, Forever, Probably

https://whitep4nth3r.com/blog/goodbye-forever-probably/
24•backlit4034•59m ago•10 comments

Factories are just rooms

https://interconnected.org/home/2026/07/03/factories
170•arbesman•7h ago•70 comments

Costco is the anti-Amazon

https://phenomenalworld.org/analysis/the-anti-amazon/
232•bookofjoe•7h ago•212 comments

Hunting a 16-year-old SQLite WAL bug with TLA+

https://ubuntu.com/blog/hunting-a-16-year-old-sqlite-bug-with-tla-is-dqlite-affected
153•peterparker204•3d ago•10 comments

Show HN: Mcpsnoop – Wireshark for MCP (transparent proxy and live TUI)

https://github.com/kerlenton/mcpsnoop
41•kerlenton•5h ago•13 comments

PostgreSQL and the OOM killer: Why we use strict memory overcommit

https://www.ubicloud.com/blog/postgresql-and-the-oom-killer-why-we-use-strict-memory-overcommit
141•furkansahin•9h ago•75 comments

Wordgard: In-browser rich-text editor from the creator of ProseMirror

https://wordgard.net/
239•indy•13h ago•90 comments

Show HN: ContextCodeCache in Rust

https://github.com/colwill/ccc
6•colwont•1h ago•0 comments

Valve open-source the Steam Machine e-ink screen so you can make your own

https://www.gamingonlinux.com/2026/07/valve-open-source-the-steam-machine-e-ink-screen-so-you-can...
510•ahlCVA•9h ago•95 comments

Software, from First Principles

https://fazamhd.com/mental-models/software/
4•faza•1h ago•0 comments

60% Fable cost cut by converting code to images and having the model OCR it

https://github.com/teamchong/pxpipe
202•dimitropoulos•6h ago•79 comments

Holes

https://xkcd.com/3266/large/
149•caminanteblanco•4h ago•27 comments

A peek into Reddit's anti-spam internals

https://lyra.horse/blog/2026/06/reddit-spam-internals/
140•OuterVale•6d ago•47 comments

Half-Baked Product

https://weli.dev/blog/half-baked-product/
1175•weli•14h ago•361 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

103•yehiaabdelm•16h ago•137 comments

New serious vulnerabilities spiked around release of Claude Mythos Preview

https://epoch.ai/data-insights/cve-severity-spike
6•cubefox•1h ago•0 comments

Nerdle Review

https://dles.gg/reviews/nerdle
4•trizoza•3d ago•0 comments

My dad helped build North America's oat supply chain: Can it be remade?

https://ambrook.com/offrange/perspective/how-we-lost-our-oats
78•surprisetalk•3d ago•45 comments

Flexible metaprogramming with Rhombus

https://lwn.net/SubscriberLink/1079001/67840550991151ed/
102•spdegabrielle•1d ago•2 comments

The Fall and Rise of Screwworm

https://www.construction-physics.com/p/the-fall-and-rise-of-screwworm
127•crescit_eundo•9h ago•50 comments

Best Simple System for Now (2025)

https://dannorth.net/blog/best-simple-system-for-now/
70•daan-k•7h ago•15 comments