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.

A walking tour of surveillance infrastructure in Seattle

https://coveillance.org/a-walking-tour-of-surveillance-infrastructure-in-seattle/
162•eustoria•3h ago•63 comments

Fidonet: Technology, Use, Tools, and History (1993)

https://www.fidonet.org/inet92_Randy_Bush.txt
81•BruceEel•3h ago•29 comments

Adafruit Receives Demand Letter from Fenwick Legal Counsel on Behalf of Flux.ai

https://blog.adafruit.com/
441•semanser•7h ago•176 comments

Why Janet? (2023)

https://ianthehenry.com/posts/why-janet/
344•yacin•7h ago•167 comments

Expanding Project Glasswing

https://www.anthropic.com/news/expanding-project-glasswing
78•surprisetalk•3h ago•82 comments

Love systemd timers

https://blog.tjll.net/you-dont-love-systemd-timers-enough/
220•yacin•7h ago•148 comments

The newest Instagram “exploit” is the goofiest I've seen

https://www.0xsid.com/blog/meta-account-takeover-fiasco
2073•ssiddharth•1d ago•461 comments

Reviving Teletext for Ham Radio

https://spectrum.ieee.org/reviving-teletext-for-ham-radio
37•yarapavan•4d ago•16 comments

CSS-Native Parallax Effect

https://dan-webnotes.com/posts/2026-06-02-css-native-parallax-effect/
99•dandep•6h ago•46 comments

Stop Ruining It

https://seths.blog/2026/06/stop-ruining-it/
138•herbertl•7h ago•56 comments

Show HN: Eyeball

https://eyeball.rory.codes/
141•mrroryflint•8h ago•52 comments

Can the stockmarket swallow Anthropic, SpaceX and OpenAI?

https://www.economist.com/finance-and-economics/2026/06/01/can-the-stockmarket-swallow-anthropic-...
591•1vuio0pswjnm7•17h ago•1014 comments

Preparing for KDE Plasma's Last X11-Supported Release

https://blog.davidedmundson.co.uk/blog/596/
68•jandeboevrie•2h ago•65 comments

Why Custom Attributes in .NET Give Me Nightmares

https://blog.washi.dev/posts/custom-attributes-and-why-they-suck/
52•jandeboevrie•2d ago•14 comments

Squillions: How money laundering won

https://www.lrb.co.uk/the-paper/v48/n09/john-lanchester/squillions
113•rwmj•2d ago•98 comments

Great Question (YC W21) Is Hiring Applied AI Interns

https://www.ycombinator.com/companies/great-question/jobs/J5TNvQH-ai-engineer-intern
1•nedwin•5h ago

Webcam head tracking, webcam to control in‑game FOV

https://www.openfov.com/
64•mwit2023•3d ago•36 comments

macOS needs its grid back

https://blog.hopefullyuseful.com/blog/macos-needs-its-grid-back/
356•ranebo•15h ago•226 comments

PCMFlowG722 wideband (HD voice) codec for ESP32

https://github.com/tanakamasayuki/PCMFlowG722
14•zdw•3d ago•1 comments

CQL: Categorical Databases

https://categoricaldata.net/
83•noworriesnate•3d ago•30 comments

Apple rejected my dictation app for using the accessibility API

https://www.mitmllc.com/blog/apple-rejected-my-dictation-app/
227•RZelaya•5h ago•133 comments

Chipotlai Max

https://github.com/cyberpapiii/chipotlai-max
336•nigelgutzmann•18h ago•56 comments

OpenAI frontier models and Codex are now available on AWS

https://openai.com/index/openai-frontier-models-and-codex-are-now-available-on-aws/
344•typpo•19h ago•118 comments

The S in Interoperability

https://frederikbraun.de/the-s-in-interoperability.html
5•conslit•2d ago•1 comments

Strace-ui, Bonsai_term, and the TUI renaissance

https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/
122•matt_d•13h ago•63 comments

Debug Project

https://debug.com/
264•Eridanus2•20h ago•107 comments

Microsoft builds MacBook Pro rival with NVIDIA-powered Surface Laptop Ultra

https://www.windowslatest.com/2026/06/01/microsoft-builds-its-ultimate-macbook-pro-rival-with-the...
272•jbk•1d ago•573 comments

AI Agent Guidelines for CS336 at Stanford

https://github.com/stanford-cs336/assignment1-basics/blob/main/CLAUDE.md
480•prakashqwerty•1d ago•148 comments

Should you normalize RGB values by 255 or 256?

https://30fps.net/pages/255-vs-256-division/
310•pplanu•23h ago•129 comments

Fooling around with encrypted reasoning blobs

https://blog.cryptographyengineering.com/2026/05/29/fooling-around-with-encrypted-reasoning-blobs/
145•supermatou•4d ago•32 comments