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.

US tobacco firms applied tobacco strategies to globalize ultra-processed foods

https://ajph.aphapublications.org/doi/10.2105/AJPH.2026.308501
68•giuliomagnifico•49m ago•41 comments

Tracing a powerful GNSS interference source over Europe

https://arxiv.org/abs/2606.03673
151•mimorigasaka•4h ago•43 comments

Redis 8.8: New array data structure, rate limiter, performance improvements

https://redis.io/blog/announcing-redis-8-8/
43•ksec•2d ago•8 comments

Changing How We Develop Ladybird

https://ladybird.org/posts/changing-how-we-develop-ladybird/
445•EdwinHoksberg•5h ago•291 comments

databow: a Rust CLI to query any database with an ADBC driver

https://columnar.tech/blog/introducing-databow//
64•hckshr•2d ago•12 comments

Entanglement Builds Space-Time. Now "Magic" Gives It Gravity

https://www.quantamagazine.org/entanglement-builds-space-time-now-magic-gives-it-gravity-20260603/
55•rbanffy•4h ago•44 comments

Fine-tuning an LLM to write docs like it's 1995

https://passo.uno/fine-tuning-docs-llm/
97•taubek•7h ago•41 comments

Nango (YC W23, dev infra) is hiring staff back end engineers

https://nango.dev/careers
1•bastienbeurier•45m ago

Meta enables ADB on deprecated Portal devices [video]

https://fb.watch/HxPu0fSyeH/
243•jenders•12h ago•89 comments

Anthropic's open-source framework for AI-powered vulnerability discovery

https://github.com/anthropics/defending-code-reference-harness
457•binyu•16h ago•127 comments

ESP32 Bit Pirate, a Hardware Hacking Tool with WebCLI That Speaks Every Protocol

https://github.com/geo-tp/ESP32-Bit-Pirate
54•geotp•5h ago•24 comments

Leap in DNA synthesis slashes time to build new genetic sequences

https://spectrum.ieee.org/faster-dna-synthesis-sidewinder
52•natalcleft•18h ago•9 comments

C++: The Documentary

https://herbsutter.com/2026/06/04/c-the-documentary-released-today/
202•ingve•8h ago•126 comments

The IsUpMap lets you check the status of over 100 major sites at once

https://isupmap.com/
80•mikelgan•8h ago•29 comments

Show HN: Lowfat – pluggable CLI filter that saved 91.8% of my LLM tokens

https://github.com/zdk/lowfat
10•zdkaster•3h ago•4 comments

Do transformers need three projections? Systematic study of QKV variants

https://arxiv.org/abs/2606.04032
184•Anon84•13h ago•35 comments

Open Code Review – An AI-powered code review CLI tool

https://github.com/alibaba/open-code-review
206•geoffbp•12h ago•60 comments

I'm skeptical about efforts to revolutionize schooling

https://www.scotthyoung.com/blog/2026/05/27/revolutionize-schooling/
211•andrewstuart•2d ago•317 comments

Ohbin – uv wrapper for installing tools from GitHub

https://github.com/prostomarkeloff/ohbin
19•notmarkeloff•3d ago•10 comments

Communication on European Tech Sovereignty, and an EU Open-Source Strategy

https://digital-strategy.ec.europa.eu/en/library/communication-european-tech-sovereignty-accompan...
33•jrepinc•2h ago•15 comments

At the Autograph Show

https://oldster.substack.com/p/at-the-autograph-show
6•NaOH•2d ago•0 comments

Watching a Z80 from an RP2350

https://emalliab.wordpress.com/2026/05/26/watching-a-z80-from-an-rp2350/
29•ibobev•2d ago•5 comments

WiFi Time

https://mitxela.com/projects/wifi_time
102•surprisetalk•2d ago•5 comments

Branchless Quicksort faster than std:sort and pdqsort with C and C++ API

https://tiki.li/blog/blqsort
190•birdculture•2d ago•59 comments

Go Experiments Explained

https://www.alexedwards.net/blog/go-experiments-explained
57•ingve•4d ago•15 comments

Delacroix's Entry of the Crusaders into Constantinople Restored

https://www.louvre.fr/en/explore/life-at-the-museum/delacroix-s-entry-of-the-crusaders-into-const...
42•rawgabbit•9h ago•16 comments

SpaceX, Other Mega IPOs Denied Fast Index Entry by S&P

https://www.bloomberg.com/news/articles/2026-06-04/s-p-dow-jones-keeps-megacap-ipo-rules-as-is-af...
685•tristanj•13h ago•335 comments

Linear Cosine Palettes(2025)

https://blog.djnavarro.net/posts/2025-09-14_cosine-palettes/
38•num42•9h ago•2 comments

Do We Need Billionaires?

https://bjhess.com/posts/do-we-need-billionaires
22•speckx•1h ago•34 comments

Magenta RealTime 2: Open and Local Live Music Models

https://magenta.withgoogle.com/magenta-realtime-2
51•selvan•8h ago•9 comments