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.

US FAA says it will phase out floppy disks from air traffic control by 2028

https://www.reuters.com/world/us/us-faa-says-it-will-phase-out-floppy-disks-air-traffic-control-b...
150•ChrisArchitect•15h ago•128 comments

Tesla to wind down Cybertruck production

https://www.nbcnews.com/tech/tech-news/tesla-wind-cybertruck-production-years-poor-sales-markets-...
547•PLenz•7h ago•1245 comments

First steps in bare-metal programming using UEFI

https://kevinboone.me/efitest_index.html
102•LaSombra•2h ago•7 comments

We know 15k websites are infected. how do we tell them?

https://scotthelme.co.uk/we-know-15-579-websites-are-infected-how-do-we-tell-them/
64•speckx•1h ago•42 comments

Perplexity launches AI agents for work

https://www.perplexity.ai/en-GB/hub/blog/teammates-are-agents-for-complex-ongoing-work
41•cybermango•1h ago•32 comments

Rune: A native GPU-rendered Rust UI framework for macOS, Windows, Linux and web

https://github.com/anomalyco/rune
91•mik3y•3h ago•67 comments

Gemini Omni 1.2 Flash

https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemini-omni-1-2-flash/
244•thisisauserid•6h ago•189 comments

Blender's UI and Runtime: Much Faster Than GPUI

https://github.com/ppmpreetham/BUI
594•ppmpreetham•12h ago•242 comments

Size-It-Up (Game)

https://magnitudle.com/size-it-up
30•whoishiding•1h ago•12 comments

My first and last telegram was from Rebecca West

https://thelampmagazine.com/blog/rebecca-wests-nightingale
6•bryanrasmussen•15m ago•0 comments

UpCodes (YC S17) is hiring SDR's to sell AI compliance software

https://up.codes/careers?utm_source=HN
1•Old_Thrashbarg•2h ago

Memorilla: Latent Semantic Memory for LLMs

https://arxiv.org/abs/2610.21375
27•handfuloflight•1h ago•1 comments

Deus Ex

https://www.filfre.net/2026/11/deus-ex/
262•cybersoyuz•4h ago•132 comments

Devvm.dev: One VM for every project

https://devvm.dev/
27•luispa•2h ago•16 comments

40C3 halfnarp – Submit talk preferences to aid scheduling

https://halfnarp.events.ccc.de
12•hanemile•1h ago•1 comments

Firecracker VM Escape: PwnEscape Part 2

https://pwn.ai/blog/firecracker-escape
5•SerCe•12m ago•0 comments

PyLings: Solve Exercises and Learn Python

https://github.com/thesayfulla/pylings
18•thesayfulla•2h ago•1 comments

Zero Hour: Telling time was a matter of survival and strategy during WWI (2014)

https://www.laphamsquarterly.org/roundtable/zero-hour
77•NaOH•1d ago•2 comments

Restaurant Delivery Payment-Skimming Campaign

https://www.infohawk.com/news/2026-11-05-scamwich-restaurant-skimming
4•fiej•26m ago•0 comments

Lippitt-Knoster in Practice (Field Notes for Managing Complex Projects)

https://sharedphysics.com/lippitt-knoster-in-practice-field-notes-for-managing-complex-projects/
44•goopthink•4h ago•1 comments

MTG-I2 First Images

https://www.eumetsat.int/mtg-i2-first-images
52•N19PEDL2•5h ago•8 comments

Flawless UI-UX Skill 1.0.0

https://github.com/smokeeaasd/flawless-ui-ux/releases/tag/v1.0.0
14•99lcccss•1h ago•18 comments

Kalshi court losses pile up as judges refuse to block state gambling laws

https://arstechnica.com/tech-policy/2026/11/kalshi-court-losses-pile-up-as-judges-refuse-to-block...
66•Analemma_•1h ago•55 comments

Democrats launching congressional investigations into SpaceXAI, META and Apple

https://www.washingtonpost.com/technology/2026/11/06/after-courting-trump-corporate-america-faces...
15•pretext•21m ago•1 comments

Living beyond the limits of survival: wood ants trapped in a gigantic pitfall (2016)

https://jhr.pensoft.net/articles.php?id=9096
143•hitekker•9h ago•46 comments

Anthropic IPO buyers see valuation as low as $1.1T

https://www.bloomberg.com/news/articles/2026-11-06/anthropic-ipo-valuation-expectations-pressured...
73•dgellow•2h ago•179 comments

Replit rebuilt its sandbox engine with microVMs

https://frontier.replit.com/sandbox-engine-microvms-part-1/
3•gaplong•39m ago•0 comments

Dutch 'idealist' bank ASN blocks non-Google Android, including GrapheneOS

https://github.com/PrivSec-dev/banking-apps-compat-report/issues/105
584•microtonal•10h ago•372 comments

Scriptable GeoDNS: Leaving AWS for Bunny

https://vincent.bernat.ch/en/blog/2026-bunny-geodns
41•sshah03•3h ago•14 comments

Microsoft is winding down Oracle deal to rent AI cloud capacity

https://www.reuters.com/business/microsoft-is-winding-down-oracle-deal-rent-ai-cloud-capacity-blo...
46•brazukadev•1h ago•12 comments