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.

Pirating the Pirates

https://mubi.com/en/notebook/posts/pirating-the-pirates
94•piotrgrabowski•1h ago•18 comments

13 Months Sober (2025)

https://www.bobbytables.io/p/13-months-sober
44•btables•1h ago•36 comments

Hijacking the PS5's RTMP Stream

https://yashgarg.dev/posts/hijacking-ps5-rtmp-stream/
44•ibobev•1h ago•3 comments

Parley: Federated, decentralised chat that speaks plain IRC

https://git.mills.io/prologic/parley
237•davidcollantes•7h ago•113 comments

Show HN: HN.watch – Videos of all Hacker News posts

https://hn.watch/
11•mrborgen•2h ago•3 comments

What Heraldry and Mon Can Teach Us About Building Visual-Identity Generators

https://benovermyer.com/blog/2026/09/japanese-vs-western-heraldry/
36•bovermyer•2h ago•11 comments

The problem is not AI code, but not knowing about system architecture or intent

https://www.ssp.sh/brain/the-problem-is-not-the-ai-code-but-nobody-knows-anything-anymore/
241•zazuke•1h ago•151 comments

MongoDB CEO resigns to join Meta

https://www.reuters.com/technology/mongodb-ceo-desai-steps-down-lead-metas-enterprise-platform-20...
124•diek•2h ago•120 comments

Cf: The Agentic CLI for the Cloudflare API

https://blog.cloudflare.com/cloudflare-cf-cli-launch/
17•macleos•2h ago•2 comments

Coding Is Not Solved

https://blog.alexewerlof.com/p/coding-is-not-solved
297•firstSpeaker•3h ago•304 comments

37,500 border drawings: a map of the world as people remember it

https://www.habibicode.org/thedrawnworld
135•nicocarsui•9h ago•31 comments

Show HN: PaperMono, e-ink fridge magnet shopping list with mobile web page

https://github.com/seamusc/papermono-shopping-list
84•seamus_c•7h ago•36 comments

What Would a Serious AI Product Look Like?

https://blog.glyph.im/2026/09/serious-ai-product.html
47•lumpa•6h ago•19 comments

Footguns with Postgres "at time zone 'UTC'"

https://bookofrevenue.com/blog/6ab81e9a97a13f0001f7e4e1/postgres-at-time-zone-u-does-not-do-what-...
132•birdculture•1d ago•73 comments

Owed a billion dollars in Nvidia stock

https://colo.to/nvidia-stock-narrative.html
989•Eric_Gullichsen•15h ago•420 comments

Kids turned low-traffic NPR Spotify comments into a secret group chat

https://www.thisamericanlife.org/897/transcript
103•simonpure•2h ago•75 comments

Show HN: Hntui – A TUI for Hacker News

https://github.com/ahmd-sh/hntui
96•ahmd-sh•5h ago•44 comments

Ember-1

https://fireworks.ai/blog/ember-1
558•gmays•1d ago•240 comments

Show HN: Free alternative to graphics design giants

https://scissor.studio/
53•sia_xi•8h ago•17 comments

Driver Ticketed for No Insurance Just Because Flock (YC 2017) Said She Didn't

https://www.techdirt.com/2026/09/28/driver-ticketed-for-no-insurance-despite-having-insurance-jus...
10•HotGarbage•36m ago•0 comments

When did Google get so weird?

https://sancho.bearblog.dev/google-weird/
1647•sancho-panza•21h ago•898 comments

Nissan's third generation e-POWER powertrain

https://www.nissan-global.com/EN/INNOVATION/TECHNOLOGY/ARCHIVE/E_POWER_GEN3/
137•mroche•15h ago•307 comments

How Pew Research Center is – and is not – using AI in our work

https://www.pewresearch.org/decoded/2026/09/28/how-pew-research-center-is-and-is-not-using-ai-in-...
7•hn_acker•27m ago•1 comments

Solving a corn puzzle with CP-SAT

https://thill.me/2026/07/16/corn-puzzle-sat-solver.html
5•luu•20h ago•2 comments

Thinking fast and slow in AI: The role of metacognition (2021)

https://arxiv.org/abs/2110.01834
163•teleforce•14h ago•65 comments

Self-Hosting on the Dark Web

https://david.alvarezrosa.com/posts/self-hosting-on-the-dark-web/
318•mooreds•21h ago•106 comments

Malleable software: Restoring user agency in a world of locked-down apps (2025)

https://www.inkandswitch.com/essay/malleable-software/
142•evakhoury•22h ago•69 comments

Alan Kay's answer to “Did the ENIAC have a BIOS”?

https://www.quora.com/Did-the-ENIAC-have-a-BIOS/answer/Alan-Kay-11
175•midnightfish•21h ago•61 comments

Guitar amp and effects pedal built on the Waveshare ESP32-S3-Touch-AMOLED-2.06

https://github.com/dashersw/coyopedal
147•arbayi•2d ago•73 comments

Functional Mechanical Sympathy [video]

https://www.youtube.com/watch?v=jSHmDnUZCm8
61•surprisetalk•2d ago•11 comments