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.

Microgpt

http://karpathy.github.io/2026/02/12/microgpt/
818•tambourine_man•8h ago•141 comments

Decision trees – the unreasonable power of nested decision rules

https://mlu-explain.github.io/decision-tree/
22•mschnell•1h ago•1 comments

10-202: Introduction to Modern AI (CMU)

https://modernaicourse.org
43•vismit2000•2h ago•9 comments

We do not think Anthropic should be designated as a supply chain risk

https://twitter.com/OpenAI/status/2027846016423321831
545•golfer•12h ago•259 comments

Switch to Claude without starting over

https://claude.com/import-memory
119•doener•2h ago•72 comments

An ode to houseplant programming (2025)

https://hannahilea.com/blog/houseplant-programming/
22•evakhoury•1d ago•4 comments

Show HN: Terminal-Style Portfolio on the Internet

https://kuber.studio/
3•kuberwastaken•41m ago•0 comments

The Windows 95 user interface: A case study in usability engineering (1996)

https://dl.acm.org/doi/fullHtml/10.1145/238386.238611
265•ksec•11h ago•170 comments

Obsidian Sync now has a headless client

https://help.obsidian.md/sync/headless
479•adilmoujahid•17h ago•164 comments

The happiest I've ever been

https://ben-mini.com/2026/the-happiest-ive-ever-been
494•bewal416•3d ago•257 comments

Sub-second volumetric 3D printing by synthesis of holographic light fields

https://www.nature.com/articles/s41586-026-10114-5
62•zdw•3d ago•11 comments

H-Bomb: A Frank Lloyd Wright typographic mystery

https://www.inconspicuous.info/p/h-bomb-a-frank-lloyd-wright-typographic
89•mrngm•3d ago•25 comments

Block the “Upgrade to Tahoe” Alerts

https://robservatory.com/block-the-upgrade-to-tahoe-alerts-and-system-settings-indicator/
235•todsacerdoti•15h ago•108 comments

Robust and efficient quantum-safe HTTPS

https://security.googleblog.com/2026/02/cultivating-robust-and-efficient.html
8•tptacek•1d ago•0 comments

Hardwood: A New Parser for Apache Parquet

https://www.morling.dev/blog/hardwood-new-parser-for-apache-parquet/
31•rmoff•2d ago•2 comments

Woxi: Wolfram Mathematica Reimplementation in Rust

https://github.com/ad-si/Woxi
295•adamnemecek•3d ago•119 comments

MCP server that reduces Claude Code context consumption by 98%

https://mksg.lu/blog/context-mode
392•mksglu•1d ago•82 comments

Addressing Antigravity Bans and Reinstating Access

https://github.com/google-gemini/gemini-cli/discussions/20632
237•RyanShook•20h ago•195 comments

Our Agreement with the Department of War

https://openai.com/index/our-agreement-with-the-department-of-war
307•surprisetalk•13h ago•218 comments

Cracking the Python Monorepo

https://gafni.dev/blog/cracking-the-python-monorepo/
20•amcvitty•2d ago•4 comments

Verified Spec-Driven Development (VSDD)

https://gist.github.com/dollspace-gay/d8d3bc3ecf4188df049d7a4726bb2a00
186•todsacerdoti•17h ago•98 comments

Show HN: Now I Get It – Translate scientific papers into interactive webpages

https://nowigetit.us
240•jbdamask•20h ago•106 comments

The Science of Detecting LLM-Generated Text

https://dl.acm.org/doi/10.1145/3624725
32•vinhnx•7h ago•13 comments

Qwen3.5 122B and 35B models offer Sonnet 4.5 performance on local computers

https://venturebeat.com/technology/alibabas-new-open-source-qwen3-5-medium-models-offer-sonnet-4-...
365•lostmsu•13h ago•203 comments

Intelligence is a commodity. Context is the real AI Moat

https://adlrocha.substack.com/p/adlrocha-intelligence-is-a-commodity
6•adlrocha•1h ago•0 comments

New evidence that Cantor plagiarized Dedekind?

https://www.quantamagazine.org/the-man-who-stole-infinity-20260225/
130•rbanffy•3d ago•77 comments

Iran's Ayatollah Ali Khamenei is killed in Israeli strike, ending 36-year rule

https://www.npr.org/2026/02/28/1123499337/iran-israel-ayatollah-ali-khamenei-killed
260•andsoitis•11h ago•338 comments

SpacetimeDB ThreeJS Support

https://discourse.threejs.org/t/spacetimedb-threejs-support-and-free-tier/90052
21•ryker2000•3d ago•5 comments

Deterministic Programming with LLMs

https://www.mcherm.com/deterministic-programming-with-llms.html
52•todsacerdoti•3d ago•27 comments

The whole thing was a scam

https://garymarcus.substack.com/p/the-whole-thing-was-scam
815•guilamu•17h ago•250 comments