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.

Ministry of Justice orders deletion of the UK's largest court reporting database

https://www.legalcheek.com/2026/02/ministry-of-justice-orders-deletion-of-the-uks-largest-court-r...
215•harel•2h ago•149 comments

The Sideprocalypse

https://johan.hal.se/wrote/2026/02/03/the-sideprocalypse/
52•headalgorithm•1h ago•30 comments

Running My Own XMPP Server

https://blog.dmcc.io/journal/xmpp-turn-stun-coturn-prosody/
91•speckx•2h ago•43 comments

What Your Bluetooth Devices Reveal About You

https://blog.dmcc.io/journal/2026-bluetooth-privacy-bluehood/
47•ssgodderidge•1h ago•11 comments

Ghidra by NSA

https://github.com/NationalSecurityAgency/ghidra
106•handfuloflight•2d ago•58 comments

Qwen3.5: Towards Native Multimodal Agents

https://qwen.ai/blog?id=qwen3.5
209•danielhanchen•6h ago•88 comments

I’m joining OpenAI

https://steipete.me/posts/2026/openclaw
1263•mfiguiere•18h ago•947 comments

I want to wash my car. The car wash is 50 meters away. Should I walk or drive?

https://mastodon.world/@knowmadd/116072773118828295
1012•novemp•9h ago•651 comments

MessageFormat: Unicode standard for localizable message strings

https://github.com/unicode-org/message-format-wg
120•todsacerdoti•5h ago•46 comments

Rolling your own serverless OCR in 40 lines of code

https://christopherkrapu.com/blog/2026/ocr-textbooks-modal-deepseek/
62•mpcsb•4d ago•29 comments

iOS 27 'Rave' Update to Clean Up Code, Could Boost Battery Life

https://www.macrumors.com/2026/02/16/apple-plans-snow-leopard-cleanup-ios-27/
61•tosh•1h ago•43 comments

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

https://modern-css.com
595•eustoria•22h ago•241 comments

Anthropic tries to hide Claude's AI actions. Devs hate it

https://www.theregister.com/2026/02/16/anthropic_claude_ai_edits/
181•beardyw•5h ago•121 comments

UK Discord users were part of a Peter Thiel-linked data collection experiment

https://www.rockpapershotgun.com/good-news-uk-discord-users-were-part-of-a-peter-thiel-linked-dat...
29•righthand•1h ago•0 comments

Vim-pencil: Rethinking Vim as a tool for writing

https://github.com/preservim/vim-pencil
87•gurjeet•3d ago•32 comments

Magnus Carlsen Wins the Freestyle (Chess960) World Championship

https://www.fide.com/magnus-carlsen-wins-2026-fide-freestyle-world-championship/
333•prophylaxis•17h ago•229 comments

Expensively Quadratic: The LLM Agent Cost Curve

https://blog.exe.dev/expensively-quadratic
97•luu•3d ago•51 comments

picol: A Tcl interpreter in 500 lines of code

https://github.com/antirez/picol
88•tosh•8h ago•42 comments

1,300-year-old world chronicle unearthed in Sinai

https://www.heritagedaily.com/2026/02/1300-year-old-world-chronicle-unearthed-in-sinai/156948
100•telotortium•4d ago•11 comments

LT6502: A 6502-based homebrew laptop

https://github.com/TechPaula/LT6502
390•classichasclass•23h ago•191 comments

Audio is the one area small labs are winning

https://www.amplifypartners.com/blog-posts/arming-the-rebels-with-gpus-gradium-kyutai-and-audio-ai
266•rocauc•3d ago•76 comments

Arm wants a bigger slice of the chip business

https://www.economist.com/business/2026/02/12/arm-wants-a-bigger-slice-of-the-chip-business
128•andsoitis•13h ago•81 comments

planckforth: Bootstrapping a Forth interpreter from hand-written tiny ELF binary

https://github.com/nineties/planckforth
10•tosh•4h ago•0 comments

Intermittent fasting may make little difference to weight loss, review finds

https://www.bbc.co.uk/news/articles/c4ge7n3pq62o
9•fredley•55m ago•6 comments

Thanks a lot, AI: Hard drives are sold out for the year, says WD

https://mashable.com/article/ai-hard-drive-hdd-shortages-western-digital-sold-out
220•dClauzel•3h ago•176 comments

Hard problems in social media archiving

https://alexwlchan.net/2025/hard-problems-in-social-media-archiving/
34•surprisetalk•4d ago•4 comments

I gave Claude access to my pen plotter

https://harmonique.one/posts/i-gave-claude-access-to-my-pen-plotter
251•futurecat•2d ago•165 comments

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

https://microgpt.boratto.ca
250•b44•21h ago•23 comments

How DSQL makes sure sequences scale

https://blog.benjscho.dev/technical/2026/02/13/dsql-sequences.html
6•steepben•2d ago•1 comments

JavaScript-heavy approaches are not compatible with long-term performance goals

https://sgom.es/posts/2026-02-13-js-heavy-approaches-are-not-compatible-with-long-term-performanc...
139•luu•15h ago•157 comments