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.

LT6502: A 6502-based homebrew laptop

https://github.com/TechPaula/LT6502
213•classichasclass•4h ago•60 comments

I Fixed Windows Native Development

https://marler8997.github.io/blog/fixed-windows/
556•deevus•9h ago•283 comments

EU bans the destruction of unsold apparel, clothing, accessories and footwear

https://environment.ec.europa.eu/news/new-eu-rules-stop-destruction-unsold-clothes-and-shoes-2026...
529•giuliomagnifico•4h ago•374 comments

Show HN: VOOG – Moog-style polyphonic synthesizer in Python with tkinter GUI

https://github.com/gpasquero/voog
27•gpasquero•1h ago•2 comments

GNU Pies – Program Invocation and Execution Supervisor

https://www.gnu.org.ua/software/pies/
10•smartmic•24m ago•1 comments

Towards Autonomous Mathematics Research

https://arxiv.org/abs/2602.10177
49•gmays•2h ago•14 comments

Modern CSS Code Snippets: Stop writing CSS like it's 2015

https://modern-css.com
59•eustoria•3h ago•13 comments

Real-time PathTracing with global illumination in WebGL

https://erichlof.github.io/THREE.js-PathTracing-Renderer/
83•tobr•3d ago•9 comments

Gwtar: A static efficient single-file HTML format

https://gwern.net/gwtar
128•theblazehen•5h ago•34 comments

Show HN: Microgpt is a GPT you can visualize in the browser

https://microgpt.boratto.ca
31•b44•2h ago•0 comments

Show HN: Lightwave – Real-time notes app, 3.5 years of hand-rolled JavaScript

6•jv22222•21m ago•5 comments

I love the work of the ArchWiki maintainers

https://k7r.eu/i-love-the-work-of-the-archwiki-maintainers/
849•panic•19h ago•152 comments

Sony Jumbotron Image Control System (1998) [pdf]

https://pro.sony/s3/cms-static-content/operation-manual/3864848111.pdf
10•xattt•3d ago•2 comments

Hideki Sato, designer of all Sega's consoles, has died

https://www.videogameschronicle.com/news/hideki-sato-designer-of-segas-consoles-dies-age-75/
242•magoghm•4h ago•22 comments

Show HN: Knock-Knock.net – Visualizing the bots knocking on my server's door

https://knock-knock.net
42•djkurlander•4h ago•15 comments

Palantir Gets Millions of Dollars from New York City's Public Hospitals

https://theintercept.com/2026/02/15/palantir-contract-new-york-city-health-hospitals/
201•cdrnsf•3h ago•74 comments

Oat – Ultra-lightweight, zero dependency, semantic HTML, CSS, JS UI library

https://oat.ink/
401•twapi•13h ago•114 comments

Flashpoint Archive – Over 200k web games and animations preserved

https://flashpointarchive.org
302•helloplanets•15h ago•73 comments

State Attorneys General Want to Tie Online Access to ID

https://reclaimthenet.org/40-attorneys-general-back-ids-online-safety-act
69•computerliker•1h ago•46 comments

LEDs Enter the Nanoscale, But efficiency hurdles challenge the smallest LEDs yet

https://spectrum.ieee.org/nanoled-research-approaches
11•oldnetguy•3d ago•3 comments

How Is Data Stored?

https://www.makingsoftware.com/chapters/how-is-data-stored
126•tzury•5d ago•12 comments

Palantir vs. the "Republik": US analytics firm takes magazine to court

https://www.heise.de/en/news/Palantir-vs-the-Republik-US-analytics-firm-takes-magazine-to-court-1...
158•cdrnsf•4h ago•53 comments

Reversed engineered game Starflight (1986)

https://github.com/s-macke/starflight-reverse
88•tosh•9h ago•41 comments

SCM as a database for the code

https://gist.github.com/gritzko/6e81b5391eacb585ae207f5e634db07e
58•gritzko•12h ago•74 comments

1940s Irish sci-fi novel features early mecha and gravity assists

https://github.com/cavedave/Manannan
49•donohoe•6h ago•18 comments

Court orders Acer and Asus to stop selling PCs in Germany over H.265 patents

https://videocardz.com/newz/acer-and-asus-are-now-banned-from-selling-pcs-and-laptops-in-germany-...
24•ledoge•1h ago•4 comments

The Spy Who Found T. Rex

https://nautil.us/the-spy-who-found-t-rex-1267359/
8•speckx•3d ago•0 comments

RynnBrain

https://github.com/alibaba-damo-academy/RynnBrain
58•jsemrau•4d ago•5 comments

Amazon, Google Unwittingly Reveal the Severity of the U.S. Surveillance State

https://greenwald.substack.com/p/amazons-ring-and-googles-nest-unwittingly
588•mikece•8h ago•412 comments

The seam through the center of things

https://usefulfictions.substack.com/p/the-seam-through-the-center-of-things
42•surprisetalk•3d ago•6 comments