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.

Norway imposes near ban on AI in elementary school

https://www.reuters.com/technology/norway-imposes-near-ban-ai-elementary-school-2026-06-19/
109•ilreb•6h ago•67 comments

There are no instances in ATProto

https://overreacted.io/there-are-no-instances-in-atproto/
266•danabramov•6h ago•167 comments

Hyundai buys Boston Dynamics

https://startupfortune.com/hyundai-takes-full-control-of-boston-dynamics-as-softbank-exits-for-32...
517•ck2•5h ago•252 comments

I used sound waves to make espresso. It could cut coffee‑brewing energy use by ¾

https://theconversation.com/i-used-sound-waves-to-make-espresso-it-could-cut-coffee-brewing-energ...
129•zeristor•6d ago•78 comments

How many of the 170k English words do you know?

https://vocabowl-870366514258.us-west1.run.app/
166•abnry•8h ago•267 comments

Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28

https://www.jvm-weekly.com/p/project-valhalla-explained-how-a
516•philonoist•15h ago•313 comments

A 1976 university experiment spun up the U.S. wind industry

https://spectrum.ieee.org/william-heronemus-wind-energy
49•pseudolus•4d ago•3 comments

Google workspace threatening to block Firefox access

https://tales.fromprod.com/2026/169/google-workspace-threatening-to-block-firefox.html
337•birdculture•5h ago•113 comments

A new bill takes aim at government pressure to silence lawful online speech

https://www.eff.org/deeplinks/2026/06/new-bill-takes-aim-government-pressure-silence-lawful-onlin...
189•hn_acker•4h ago•96 comments

Telescope Ranchers

https://kottke.org/26/06/telescope-ranchers
86•bookofjoe•3d ago•29 comments

DuckDB Internals Part 1

https://www.greybeam.ai/blog/duckdb-internals-part-1
412•marklit•3d ago•128 comments

Court Records Should Be Free

https://www.eff.org/deeplinks/2026/06/court-records-should-be-free
122•hn_acker•4h ago•21 comments

Amateur may have cracked Linear A

https://aiclambake.com/clamtakes/linear-a/
369•Kosturdistan•6h ago•143 comments

Big Banana Car

https://bigbananacar.com/
96•Bender•3h ago•56 comments

Show HN: Metiq: a real time 3D globe for 100 public datasets

https://metiq.space
65•rakeda•3d ago•15 comments

Egyptian Fractions

https://blog.plover.com/math/egyptian-fractions.html
25•luu•3d ago•0 comments

Zen and the Art of Machine Learning Research

https://blog.jxmo.io/p/zen-and-the-art-of-machine-learning
222•jxmorris12•3d ago•72 comments

Companies rein in AI usage as costs strain budgets

https://www.ft.com/content/1d37cc08-e0aa-45a4-a45d-4ad282529314
60•fandorin•2h ago•41 comments

Amazon drops Sam Altman movie after announcing OpenAI partnership

https://www.the-independent.com/arts-entertainment/films/news/sam-altman-biopic-amazon-openai-dea...
125•theanonymousone•2h ago•48 comments

Ten years of ClickHouse in open source

https://clickhouse.com/blog/open-source-10
256•saisrirampur•4d ago•71 comments

To study how chips work, MIT researchers built their own operating system

https://news.mit.edu/2026/to-study-how-chips-really-work-mit-researchers-built-their-own-operatin...
340•speckx•4d ago•52 comments

Show HN: Continuous Nvidia CUDA PC Sampling Profiler

https://www.polarsignals.com/blog/posts/2026/06/10/nvidia-cuda-pc-sampling
9•gnurizen•4d ago•3 comments

Gribouille 0.3.0: A Grammar of Graphics for Typst

https://mickael.canouil.fr/posts/2026-06-15-gribouille-0-3/
199•mcanouil•4d ago•75 comments

The AirPods Effect

https://www.theescapenewsletter.com/p/the-airpods-effect
361•herbertl•22h ago•635 comments

Zenzizenzizenzic

https://en.wikipedia.org/wiki/Zenzizenzizenzic
9•gyosifov•17m ago•2 comments

John Jumper to join Anthropic

https://twitter.com/JohnJumperSci/status/2068001285173834106
62•artninja1988•4h ago•51 comments

Show HN: Modeloop – From visual algorithms to microcontroller C code

https://www.modeloop.app/
41•lucamark•4d ago•24 comments

The UK's New Under-16 Social Media Ban Will Cause More Harm Than It Prevents

https://www.eff.org/deeplinks/2026/06/uks-new-under-16-social-media-ban-will-cause-more-harm-it-p...
3•Brajeshwar•8m ago•0 comments

Show HN: Pagecast – Publish Markdown/HTML Reports to Cloudflare Pages

https://github.com/Amal-David/pagecast
21•amaldavid•1d ago•3 comments

The Productivity J-Curve [pdf] (2018)

https://ide.mit.edu/sites/default/files/publications/jcurve.pdf
45•kioku•3d ago•13 comments