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.

Anthropic officially bans using subscription auth for third party use

https://code.claude.com/docs/en/legal-and-compliance
62•theahura•1h ago•55 comments

Sizing chaos

https://pudding.cool/2026/02/womens-sizing/
338•zdw•6h ago•203 comments

27-year-old Apple iBooks can connect to Wi-Fi and download official updates

https://old.reddit.com/r/MacOS/comments/1r8900z/macos_which_officially_supports_27_year_old/
198•surprisetalk•7h ago•106 comments

Cosmologically Unique IDs

https://jasonfantl.com/posts/Universal-Unique-IDs/
303•jfantl•9h ago•90 comments

How to Choose Between Hindley-Milner and Bidirectional Typing

https://thunderseethe.dev/posts/how-to-choose-between-hm-and-bidir/
48•thunderseethe•3d ago•5 comments

15 years of FP64 segmentation, and why the Blackwell Ultra breaks the pattern

https://nicolasdickenmann.com/blog/the-great-fp64-divide.html
29•fp64enjoyer•2h ago•5 comments

Tailscale Peer Relays is now generally available

https://tailscale.com/blog/peer-relays-ga
352•sz4kerto•11h ago•182 comments

Zero-day CSS: CVE-2026-2441 exists in the wild

https://chromereleases.googleblog.com/2026/02/stable-channel-update-for-desktop_13.html
272•idoxer•11h ago•146 comments

Minecraft Java is switching from OpenGL to Vulkan

https://www.gamingonlinux.com/2026/02/minecraft-java-is-switching-from-opengl-to-vulkan-for-the-v...
83•tuananh•2h ago•20 comments

DNS-Persist-01: A New Model for DNS-Based Challenge Validation

https://letsencrypt.org/2026/02/18/dns-persist-01.html
222•todsacerdoti•9h ago•103 comments

Step 3.5 Flash: Fast Enough to Think. Reliable Enough to Act

https://static.stepfun.com/blog/step-3.5-flash/
7•kristianp•1h ago•2 comments

A Pokémon of a Different Color

https://matthew.verive.me/blog/color/
60•Risse•3d ago•7 comments

How AI is affecting productivity and jobs in Europe

https://cepr.org/voxeu/columns/how-ai-affecting-productivity-and-jobs-europe
11•pseudolus•3h ago•2 comments

Closing this as we are no longer pursuing Swift adoption

https://github.com/LadybirdBrowser/ladybird/issues/933
227•thewavelength•4h ago•170 comments

The Perils of ISBN

https://rygoldstein.com/posts/perils-of-isbn
87•evakhoury•10h ago•44 comments

R3forth: A concatenative language derived from ColorForth

https://github.com/phreda4/r3/blob/main/doc/r3forth_tutorial.md
64•tosh•8h ago•9 comments

Show HN: Respectlytics – Open-source, privacy-first mobile analytics (MIT+AGPL)

https://github.com/respectlytics/respectlytics
7•cesncn•3d ago•0 comments

Making a font with ligatures to display thirteenth-century monk numerals

https://digitalseams.com/blog/making-a-font-with-9999-ligatures-to-display-thirteenth-century-mon...
50•a7b3fa•3d ago•8 comments

What Every Experimenter Must Know About Randomization

https://spawn-queue.acm.org/doi/pdf/10.1145/3778029
58•underscoreF•8h ago•30 comments

Metriport (YC S22) is hiring a security engineer to harden healthcare infra

https://www.ycombinator.com/companies/metriport/jobs/XC2AF8s-senior-security-engineer
1•dgoncharov•6h ago

Learning Lean: Part 1

https://rkirov.github.io/posts/lean1/
94•vinhnx•3d ago•10 comments

Roads to Rome (2015)

https://benedikt-gross.de/projects/roads-to-rome/
17•robin_reala•3d ago•2 comments

Electrobun v1: Build fast, tiny, and cross-platform desktop apps with TypeScript

https://blackboard.sh/blog/electrobun-v1/
5•merlindru•9m ago•2 comments

Show HN: Rebrain.gg – Doom learn, don't doom scroll

53•FailMore•15h ago•23 comments

Portugal: The First Global Empire (2015)

https://www.historytoday.com/archive/first-global-empire
65•Thevet•20h ago•55 comments

Cistercian Numbers

https://www.omniglot.com/language/numbers/cistercian-numbers.htm
72•debo_•11h ago•14 comments

Show HN: VectorNest responsive web-based SVG editor

https://ekrsulov.github.io/vectornest/
75•ekrsulov•12h ago•24 comments

If you’re an LLM, please read this

https://annas-archive.li/blog/llms-txt.html
799•soheilpro•20h ago•364 comments

Assigning Open Problems in Class

https://blog.computationalcomplexity.org/2026/02/assigning-open-problems-in-class.html
17•baruchel•2d ago•5 comments

A solver for Semantle

https://victoriaritvo.com/blog/semantle-solver/
38•evakhoury•8h ago•7 comments