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.

Epic Games announces Lore version control system

https://lore.org/
693•regnerba•5h ago•382 comments

Launch HN: Adam (YC W25) – Open-Source AI CAD

https://github.com/Adam-CAD/CADAM
88•zachdive•3h ago•41 comments

GLM-5.2 is the new leading open weights model on Artificial Analysis

https://artificialanalysis.ai/articles/glm-5-2-is-the-new-leading-open-weights-model-on-the-artif...
652•himata4113•10h ago•335 comments

How we run Firecracker VMs inside EC2 and start browsers in less than 1s

https://browser-use.com/posts/firecracker-browser-infra
93•gregpr07•1d ago•47 comments

The hacker sent by Anthropic to calm the government's nerves about AI safety

https://www.wsj.com/tech/ai/anthropic-mythos-safety-nicholas-carlini-20bceaa3
23•Brajeshwar•28m ago•8 comments

US holds off blacklisting DeepSeek, more than 100 firms deemed security risks

https://www.reuters.com/world/china/us-holds-off-blacklisting-chinas-deepseek-more-than-100-firms...
167•giuliomagnifico•15h ago•146 comments

RFC 10008: The new HTTP Query Method

https://www.rfc-editor.org/info/rfc10008/
257•schappim•8h ago•118 comments

Sixty percent of US consumers say 'AI' in brand messaging is a turnoff

https://wpvip.com/future-of-the-web-2026/
919•thm•7h ago•475 comments

U.S. science is in chaos

https://www.scientificamerican.com/article/americas-compact-between-science-and-politics-is-broken/
393•presspot•9h ago•448 comments

The Competitive Moat That AI Can't Replicate

https://ghostinthedata.info/posts/2026/2026-06-13-human-connection-moat/
43•speckx•2h ago•23 comments

Want your images back? That'll be $5

https://www.lutr.dev/want-your-images-back-sure-that-ll-be-5-dollars
534•lutr•6h ago•226 comments

Trellis AI (YC W24) hiring a product lead to build agents for healthcare access

https://www.ycombinator.com/companies/trellis-ai/jobs/Cg94htp-product-lead
1•macklinkachorn•2h ago

Why thinking out loud with someone beats thinking alone

https://www.thesignalist.io/s/the-dialogue-dividend/
95•kodesko•6h ago•34 comments

MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C

https://github.com/rxi/microui
140•peter_d_sherman•7h ago•42 comments

Show HN: Inkwash, a watercolor sketching app and explanation

https://johnowhitaker.github.io/inkwash/about
113•Yenrabbit•3d ago•18 comments

TREX: An AI code reviewer that runs your code

https://www.greptile.com/blog/trex-code-execution
32•dakshgupta•4h ago•5 comments

The Capitoline Wolf

https://thehappytraveler.ca/travel-guide-italy/capitoline-wolf-siena-rome-myths/
7•jruohonen•3d ago•0 comments

Hacker News but for independent blogs

https://bubbles.town/
449•headalgorithm•12h ago•158 comments

Kirkland Roundabouts

https://kirklandroundabouts.com
112•DenisM•2d ago•82 comments

AI chemist improves a challenging reaction in medicinal chemistry

https://openai.com/index/ai-chemist-improves-reaction/
24•ilreb•2h ago•12 comments

AI demands more engineering discipline. Not less

https://charitydotwtf.substack.com/p/ai-demands-more-engineering-discipline
249•BerislavLopac•5h ago•117 comments

Image Compression

https://www.makingsoftware.com/chapters/image-compression
110•vinhnx•3d ago•14 comments

Why do commercial spaces sit vacant? (2025)

https://www.freerange.city/p/why-do-commercial-spaces-sit-vacant
71•Redoubts•12h ago•104 comments

Volkswagen started blocking GrapheneOS users

https://discuss.grapheneos.org/d/35949-volkswagen-app?page=3
310•microtonal•4h ago•216 comments

Seventeen Camels and Where They Can Take You

https://mathenchant.wordpress.com/2026/06/15/seventeen-camels-and-where-they-can-take-you/
16•ibobev•2d ago•7 comments

The founder's playbook: Building an AI-native startup

https://claude.com/blog/the-founders-playbook
175•e2e4•12h ago•138 comments

Show HN: An 8-bit live gamecast for baseball

https://ribbie.tv/watch
133•brownrout•3h ago•80 comments

French physicist and media star loses doctorate after plagiarism investigation

https://www.science.org/content/article/french-physicist-and-media-star-loses-doctorate-after-pla...
113•bookofjoe•4h ago•110 comments

Abandoned and Little-Known Airfields

https://airfields-freeman.com/
132•wizardforhire•3d ago•37 comments

Show HN: Deconvolution – a Rust image deconvolution and restoration crate

https://github.com/pbkx/deconvolution
24•rmi0•2d ago•4 comments