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•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.

macOS needs its grid back

https://blog.hopefullyuseful.com/blog/macos-needs-its-grid-back/
124•ranebo•3h ago•65 comments

The newest Instagram “exploit” is the goofiest I've seen

https://www.0xsid.com/blog/meta-account-takeover-fiasco
1469•ssiddharth•12h ago•349 comments

Can the stockmarket swallow Anthropic, SpaceX and OpenAI?

https://www.economist.com/finance-and-economics/2026/06/01/can-the-stockmarket-swallow-anthropic-...
164•1vuio0pswjnm7•4h ago•360 comments

How is Groq raising more money?

https://www.zach.be/p/how-the-hell-is-groq-raising-more
61•hasheddan•3h ago•25 comments

OpenAI frontier models and Codex are now available on AWS

https://openai.com/index/openai-frontier-models-and-codex-are-now-available-on-aws/
189•typpo•6h ago•66 comments

Chipotlai Max

https://github.com/cyberpapiii/chipotlai-max
116•nigelgutzmann•5h ago•24 comments

U.S. Midterms Have a Cyber Problem, but It's Not at the Ballot Box

https://blog.checkpoint.com/exposure-management/the-2026-u-s-midterms-have-a-cyber-problem-but-it...
37•gnabgib•2h ago•36 comments

KL Zero: KL divergence intuition game

https://klzero.sarna.dev
12•psarna•2d ago•3 comments

Fooling around with encrypted reasoning blobs

https://blog.cryptographyengineering.com/2026/05/29/fooling-around-with-encrypted-reasoning-blobs/
29•supermatou•3d ago•3 comments

Debug Project

https://debug.com/
172•Eridanus2•7h ago•74 comments

Squillions: How Money Laundering Won

https://www.lrb.co.uk/the-paper/v48/n09/john-lanchester/squillions
39•rwmj•1d ago•15 comments

AI Agent Guidelines for CS336 at Stanford

https://github.com/stanford-cs336/assignment1-basics/blob/main/CLAUDE.md
352•prakashqwerty•11h ago•124 comments

Crystal Nights (2008)

https://www.gregegan.net/MISC/CRYSTAL/Crystal.html
24•rorylawless•3h ago•3 comments

CS336: Language Modeling from Scratch

https://cs336.stanford.edu/
390•kristianpaul•14h ago•43 comments

Should you normalize RGB values by 255 or 256?

https://30fps.net/pages/255-vs-256-division/
216•pplanu•10h ago•94 comments

Launch HN: Expanse (YC P26) – Unlock Wasted GPU Capacity

74•ismaeel_bashir•15h ago•23 comments

Microsoft builds MacBook Pro rival with NVIDIA-powered Surface Laptop Ultra

https://www.windowslatest.com/2026/06/01/microsoft-builds-its-ultimate-macbook-pro-rival-with-the...
176•jbk•16h ago•382 comments

A new way to build chips: Sequentially stacking silicon to extend Moore's Law

https://matse.illinois.edu/news/85775
31•hhs•2d ago•8 comments

What appear to be biochemical processes may be a natural feature of geology

https://www.quantamagazine.org/the-dirt-that-refused-to-die-20260601/
203•speckx•13h ago•69 comments

Nvidia RTX Spark

https://www.nvidia.com/en-us/products/rtx-spark/
360•shenli3514•23h ago•349 comments

Palindromes by Eric Harshbarger

http://www.ericharshbarger.org/cgi-bin/palindrome_viewer.cgi
3•jruohonen•1d ago•0 comments

Alphabet announces $80B equity capital raise to expand AI infra and compute

https://abc.xyz/investor/news/news-details/2026/Alphabet-Announces-Proposed-80-Billion-Equity-Cap...
140•gregschlom•7h ago•132 comments

Ask HN: Who is hiring? (June 2026)

171•whoishiring•13h ago•249 comments

Florida sues OpenAI and Sam Altman over AI risks

https://www.politico.com/news/2026/06/01/openai-hit-with-florida-lawsuit-00944215
194•cyunker•12h ago•164 comments

Stealing from Biologists to Compile Haskell Faster

https://www.iankduncan.com/engineering/2026-05-30-stealing-from-biologists-to-compile-haskell-fas...
101•mooreds•2d ago•4 comments

Age verification for social media, the beginning of the end for a free internet?

https://mullvad.net/en/blog/age-verification-for-social-media-the-beginning-of-the-end-for-a-free...
137•StrLght•5h ago•82 comments

Only 17% of all 64-bit Integers are products of two 32-bit integers

https://lemire.me/blog/2026/05/22/only-17-of-all-64-bit-integers-are-products-of-two-32-bit-integ...
212•sebg•4d ago•96 comments

I made my phone slow on purpose

https://vinewallapp.com/notes/i-made-my-phone-slow-on-purpose/
178•gcampos•4d ago•162 comments

Anyone seen a CC- serial prefix on legacy networking hardware?

28•Throwaway_sys•2d ago•13 comments

Flipper Zero Zig Template

https://github.com/NishantJoshi00/flipper-template
130•Nars088•15h ago•10 comments