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.

Apertus – Open Foundation Model for Sovereign AI

https://apertvs.ai/
192•T-A•4h ago•74 comments

Did my old job only exist because of fraud?

https://david.newgas.net/did-my-old-job-only-exist-because-of-fraud/
216•advisedwang•4h ago•96 comments

The Doom Justifies the Valuation

https://geohot.github.io//blog/jekyll/update/2026/06/21/the-doom-justifies-the-valuation.html
37•inatreecrown2•1h ago•20 comments

I was wrong about the Midjourney ultra-sound scanner

https://twitter.com/MattZirwas/status/2068365802491834541
45•MrBuddyCasino•12h ago•27 comments

Everything is logarithms

https://alexkritchevsky.com/2026/05/25/everything-is-logarithms.html
109•E-Reverance•4h ago•15 comments

Petition against Meta's employee training data collection for ML models

https://mcipetition.com/
28•reasonableklout•2h ago•23 comments

1983 Northern Telecom Commodore Phone

https://www.oldtelephoneroom.ca/1983-northern-telecom-commodore-phone/
16•arexxbifs•1h ago•2 comments

JSON-LD explained for personal websites

https://hawksley.dev/blog/json-ld-explained-for-personal-websites/
161•ethanhawksley•6h ago•45 comments

PowerFox Browser

https://powerfox.jazzzny.me/
71•thisislife2•4h ago•20 comments

There is minimal downside to switching to open models

https://www.marble.onl/posts/cancel_claude.html
48•amarble•4h ago•13 comments

From Combinatorial Mess to Linear Elegance: Architecting a Conversion Engine

https://blog.minimal.app/conversion-engine/
9•arthurofbabylon•4d ago•2 comments

Good results fine tuning a local LLM like Qwen 3:0.6B to categorize questions

https://www.teachmecoolstuff.com/viewarticle/fine-tuning-a-local-llm-to-categorize-questions
21•dev-experiments•2h ago•1 comments

Identity verification on Claude

https://support.claude.com/en/articles/14328960-identity-verification-on-claude
574•bathory•13h ago•510 comments

I Play Video Games with Spinal Muscular Atrophy

https://www.openassistivetech.org/how-i-actually-play-video-games-with-sma-the-tools-i-use-every-...
26•dannyobrien•3d ago•6 comments

Beyond All Reason (Free Total Annihilation Inspired RTS)

https://www.beyondallreason.info
435•mosiuerbarso•14h ago•256 comments

Simple hard way to conjugate Japanese verbs

https://underreacted.leaflet.pub/3mmevu6woys27
33•valzevul•2h ago•29 comments

Prefer duplication over the wrong abstraction (2016)

https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction
426•rafaepta•9h ago•290 comments

Show HN: Recall – fully-local project memory for Claude Code

https://github.com/raiyanyahya/recall
67•mateenah•4h ago•54 comments

HPV jabs cut risk of dying from cervical cancer before 30 to almost zero

https://www.theguardian.com/society/2026/jun/17/hpv-jabs-reduce-risk-dying-cervical-cancer-before...
154•toomuchtodo•4d ago•77 comments

FDA advisors unanimously vote to approve Moderna's mRNA after agency drama

https://arstechnica.com/health/2026/06/fda-advisors-unanimously-vote-to-approve-modernas-mrna-aft...
100•worik•4h ago•50 comments

The minimum viable unit of saleable software

https://brandur.org/minimum-viable-unit
126•brandur•9h ago•50 comments

(How to Write a (Lisp) Interpreter (In Python)) (2010)

https://norvig.com/lispy.html
164•tosh•10h ago•55 comments

Show HN: Criterion Closet as a website – pull any of 1,247 films off the shelf

https://the-criterion-closet.vercel.app
45•olievans•1d ago•11 comments

Wildcard (YC W25) is hiring an applied ML engineer

https://www.ycombinator.com/companies/wildcard/jobs/SEmo4di-founding-applied-ml-engineer
1•kaushikmahorker•8h ago

Minecraft: Java Edition 26.2, the first version with Vulkan 1.2

https://www.minecraft.net/en-us/article/minecraft-java-edition-26-2
53•ObviouslyFlamer•4d ago•12 comments

An Embedded Linux on a Single Floppy

https://github.com/w84death/floppinux
61•modinfo•2d ago•29 comments

Show HN: MiniPCs.zip – Charting the Pareto frontier of Mini PCs

https://minipcs.zip
9•yathern•1d ago•8 comments

Show HN: Teach your kids perfect pitch

https://github.com/paytonjjones/bsharp
56•paytonjjones•13h ago•33 comments

My 1992 view of the problems of computer programming in 1992

https://blog.plover.com/prog/fortran-i.html
12•pavel_lishin•4h ago•1 comments

Ask for no, don't ask for yes (2022)

https://www.mooreds.com/wordpress/archives/3518
110•skogstokig•5h ago•53 comments