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•9mo ago

Comments

stevoski•9mo 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•9mo 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•9mo 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_•9mo ago
Spotbugs or checkstyle etc... would catch these. What does AI add here?
xyst•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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•9mo ago
stupid af
Traubenfuchs•9mo 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•9mo 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•9mo ago
Can the QA team? How does the dev/staging environment help writing less buggy code?
rad_gruchalski•9mo ago
But can you leetcode heh.
TYMorningCoffee•9mo 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.

CasNum

https://github.com/0x0mer/CasNum
64•aebtebeten•1h ago•8 comments

A decade of Docker containers

https://cacm.acm.org/research/a-decade-of-docker-containers/
180•zacwest•4h ago•112 comments

Dumping Lego NXT firmware off of an existing brick

https://arcanenibble.github.io/dumping-lego-nxt-firmware-off-of-an-existing-brick.html
86•theblazehen•1d ago•5 comments

Senators Launch Effort Ban Elected Officials Profiting from Prediction Markets

https://www.merkley.senate.gov/merkley-klobuchar-launch-new-effort-to-ban-federal-elected-officia...
52•stopbulying•54m ago•8 comments

FLASH radiotherapy's bold approach to cancer treatment

https://spectrum.ieee.org/flash-radiotherapy
163•marc__1•6h ago•47 comments

Ki Editor - an editor that operates on the AST

https://ki-editor.org/
328•ravenical•11h ago•114 comments

macOS code injection for fun and no profit (2024)

https://mariozechner.at/posts/2024-07-20-macos-code-injection-fun/
42•jstrieb•3d ago•4 comments

In 1985 Maxell built a bunch of life-size robots for its bad floppy ad

https://buttondown.com/suchbadtechads/archive/maxell-life-size-robots/
25•rfarley04•3d ago•1 comments

Compiling Prolog to Forth [pdf]

https://vfxforth.com/flag/jfar/vol4/no4/article4.pdf
80•PaulHoule•3d ago•8 comments

Plasma Bigscreen – 10-foot interface for KDE plasma

https://plasma-bigscreen.org
617•PaulHoule•21h ago•204 comments

Re-creating the complex cuisine of prehistoric Europeans

https://arstechnica.com/science/2026/03/recreating-the-complex-cuisine-of-prehistoric-europeans/
48•apollinaire•1d ago•19 comments

Show HN: ANSI-Saver – A macOS Screensaver

https://github.com/lardissone/ansi-saver
70•lardissone•7h ago•21 comments

Filesystems Are Having a Moment

https://madalitso.me/notes/why-everyone-is-talking-about-filesystems/
147•malgamves•11h ago•81 comments

Bourdieu's theory of taste: a grumbling abrégé (2023)

https://dynomight.net/bourdieu/
29•sebg•2d ago•10 comments

The yoghurt delivery women combatting loneliness in Japan

https://www.bbc.com/travel/article/20260302-the-yoghurt-delivery-women-combatting-loneliness-in-j...
159•ranit•8h ago•115 comments

SigNoz (YC W21, open source Datadog) Is Hiring across roles

https://signoz.io/careers
1•pranay01•4h ago

War prediction markets are a national-security threat

https://www.theatlantic.com/technology/2026/03/polymarket-insider-trading-going-get-people-killed...
108•fortran77•1h ago•56 comments

To update blobs or not to update blobs

https://codon.org.uk/~mjg59/blog/p/to-update-blobs-or-not-to-update-blobs/
6•trelane•4d ago•1 comments

PC processors entered the Gigahertz era today in the year 2000 with AMD's Athlon

https://www.tomshardware.com/pc-components/cpus/pc-processors-entered-the-gigahertz-era-today-in-...
142•LorenDB•7h ago•111 comments

Self-Portrait by Ernst Mach (1886)

https://publicdomainreview.org/collection/self-portrait-by-ernst-mach-1886/
74•Hooke•1d ago•12 comments

UUID package coming to Go standard library

https://github.com/golang/go/issues/62026
335•soypat•19h ago•214 comments

this css proves me human

https://will-keleher.com/posts/this-css-makes-me-human/
347•todsacerdoti•23h ago•108 comments

Helix: A post-modern text editor

https://helix-editor.com/
312•doener•21h ago•151 comments

48x32, a 1536 LED Game Computer (2023)

https://jacquesmattheij.com/48x32-introduction/
65•duck•2d ago•13 comments

Verification debt: the hidden cost of AI-generated code

https://fazy.medium.com/agentic-coding-ais-adolescence-b0d13452f981
50•xfz•4h ago•57 comments

Show HN: µJS, a 5KB alternative to Htmx and Turbo with zero dependencies

https://mujs.org
83•amaury_bouchard•12h ago•24 comments

Training students to prove they're not robots is pushing them to use more AI

https://www.techdirt.com/2026/03/06/were-training-students-to-write-worse-to-prove-theyre-not-rob...
122•PretzelFisch•2h ago•102 comments

Tinnitus Is Connected to Sleep

https://www.sciencealert.com/tinnitus-is-somehow-connected-to-a-crucial-bodily-function
156•bookofjoe•7h ago•178 comments

LLMs work best when the user defines their acceptance criteria first

https://blog.katanaquant.com/p/your-llm-doesnt-write-correct-code
409•dnw•20h ago•358 comments

Uploading Pirated Books via BitTorrent Qualifies as Fair Use, Meta Argues

https://torrentfreak.com/uploading-pirated-books-via-bittorrent-qualifies-as-fair-use-meta/
373•askl•12h ago•207 comments