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•8mo ago

Comments

stevoski•8mo 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•8mo 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•8mo 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_•8mo ago
Spotbugs or checkstyle etc... would catch these. What does AI add here?
xyst•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
stupid af
Traubenfuchs•8mo 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•8mo 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•8mo ago
Can the QA team? How does the dev/staging environment help writing less buggy code?
rad_gruchalski•8mo ago
But can you leetcode heh.
TYMorningCoffee•8mo 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.

A new bill in New York would require disclaimers on AI-generated news content

https://www.niemanlab.org/2026/02/a-new-bill-in-new-york-would-require-disclaimers-on-ai-generate...
113•giuliomagnifico•2h ago•50 comments

Claude Opus 4.6

https://www.anthropic.com/news/claude-opus-4-6
2031•HellsMaddy•18h ago•870 comments

Invention of DNA "Page Numbers" Opens Up Possibilities for the Bioeconomy

https://www.caltech.edu/about/news/invention-dna-page-numbers-synthesis-kaihang-wang
22•dagurp•1h ago•5 comments

GPT-5.3-Codex

https://openai.com/index/introducing-gpt-5-3-codex/
1345•meetpateltech•17h ago•510 comments

Things Unix can do atomically (2010)

https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html
133•onurkanbkrc•6h ago•48 comments

Systems Thinking

http://theprogrammersparadox.blogspot.com/2026/02/systems-thinking.html
124•r4um•6h ago•55 comments

Plasma Effect

https://www.4rknova.com/blog/2016/11/01/plasma
40•todsacerdoti•3d ago•3 comments

My AI Adoption Journey

https://mitchellh.com/writing/my-ai-adoption-journey
631•anurag•16h ago•230 comments

We tasked Opus 4.6 using agent teams to build a C Compiler

https://www.anthropic.com/engineering/building-c-compiler
562•modeless•16h ago•546 comments

Show HN: Artifact Keeper – Open-Source Artifactory/Nexus Alternative in Rust

https://github.com/artifact-keeper
80•bsgeraci•7h ago•27 comments

Recreating Epstein PDFs from raw encoded attachments

https://neosmart.net/blog/recreating-epstein-pdfs-from-raw-encoded-attachments/
383•ComputerGuru•1d ago•135 comments

Stay Away from My Trash

https://tldraw.dev/blog/stay-away-from-my-trash
43•EvgeniyZh•3d ago•23 comments

DNS Explained – How Domain Names Get Resolved

https://www.bhusalmanish.com.np/blog/posts/dns-explained.html
14•okchildhood•3d ago•6 comments

US Immigration on the Easiest Setting

https://pluralistic.net/2026/02/06/doge-ball/#n-600
23•headalgorithm•57m ago•4 comments

Animated Knots

https://www.animatedknots.com/
219•ostacke•3d ago•32 comments

Unlocking high-performance PostgreSQL with key memory optimizations

https://stormatics.tech/blogs/unlocking-high-performance-postgresql-key-memory-optimizations
60•camille_134•4d ago•5 comments

The RCE that AMD won't fix

https://mrbruh.com/amd/
241•MrBruh•12h ago•102 comments

I reversed Tower of Fantasy's anti-cheat driver: a BYOVD toolkit never loaded

https://vespalec.com/blog/tower-of-flaws/
74•svespalec•8h ago•34 comments

Sealos – AI Native Cloud Cloud Operating System

https://github.com/labring/sealos
8•fanux•3d ago•5 comments

The time I didn't meet Jeffrey Epstein

https://scottaaronson.blog/?p=9534
205•pfdietz•16h ago•223 comments

Waiting for Postgres 19: Better planner hints with path generation strategies [video]

https://www.youtube.com/watch?v=QLb3nhIy2Lc
44•sbuttgereit•8h ago•1 comments

MenuetOS – a GUI OS that boots from a single floppy disk

https://www.menuetos.net/
161•pjerem•3d ago•34 comments

The Color of Safety

https://protocolized.summerofprotocols.com/p/the-color-of-safety
14•laurex•3d ago•1 comments

Claude Opus 4.6 extra usage promo

https://support.claude.com/en/articles/13613973-claude-opus-4-6-extra-usage-promo
176•rob•15h ago•58 comments

GitHub Actions is slowly killing engineering teams

https://www.iankduncan.com/engineering/2026-02-05-github-actions-killing-your-team/
279•codesuki•9h ago•135 comments

LinkedIn checks for 2953 browser extensions

https://github.com/mdp/linkedin-extension-fingerprinting
434•mdp•16h ago•203 comments

Hypernetworks: Neural Networks for Hierarchical Data

https://blog.sturdystatistics.com/posts/hnet_part_I/
64•mkmccjr•19h ago•4 comments

What if writing tests was a joyful experience? (2023)

https://blog.janestreet.com/the-joy-of-expect-tests/
83•ryanhn•14h ago•33 comments

Generative Pen-Trained Transformer

https://theodore.net/projects/Polargraph/
19•Twarner•7h ago•0 comments

Orchestrate teams of Claude Code sessions

https://code.claude.com/docs/en/agent-teams
360•davidbarker•18h ago•196 comments