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

Comments

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

We Built It with Slide Rules. Then We Forgot How

https://unmitigatedrisk.com/?p=1227
43•speckx•37m ago•11 comments

Claude Code Unpacked : A visual guide

https://ccunpacked.dev/
883•autocracy101•11h ago•316 comments

Is BGP safe yet?

https://isbgpsafeyet.com/
161•janandonly•3h ago•55 comments

CERN levels up with new superconducting karts

https://home.cern/news/news/engineering/cern-levels-new-superconducting-karts
303•fnands•9h ago•66 comments

EmDash: A spiritual successor to WordPress and plugin security

https://blog.cloudflare.com/emdash-wordpress/
18•elithrar•13m ago•2 comments

Ask HN: Who is hiring? (April 2026)

16•whoishiring•1h ago•28 comments

StepFun 3.5 Flash is #1 cost-effective model for OpenClaw tasks (300 battles)

https://app.uniclaw.ai/arena?tab=costEffectiveness&via=hn
4•skysniper•10m ago•0 comments

Ask HN: Who wants to be hired? (April 2026)

7•whoishiring•1h ago•29 comments

Show HN: Sycamore – next gen Rust web UI library using fine-grained reactivity

https://sycamore.dev
72•lukechu10•3h ago•43 comments

Consider the Greenland Shark (2020)

https://www.lrb.co.uk/the-paper/v42/n09/katherine-rundell/consider-the-greenland-shark
53•mooreds•5d ago•16 comments

Intuiting Pratt Parsing

https://louis.co.nz/2026/03/26/pratt-parsing.html
102•signa11•2d ago•29 comments

Claude Wrote a Full FreeBSD Remote Kernel RCE with Root Shell (CVE-2026-4747)

https://github.com/califio/publications/blob/main/MADBugs/CVE-2026-4747/write-up.md
171•ishqdehlvi•11h ago•66 comments

Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

https://github.com/yannick-cw/korb
163•wazHFsRy•2d ago•64 comments

Wasmer (YC S19) Is Hiring – Rust and DevRel Positions

https://www.workatastartup.com/companies/wasmer
1•syrusakbary•4h ago

Random numbers, Persian code: A mysterious signal transfixes radio sleuths

https://www.rferl.org/a/mystery-numbers-station-persian-signal-iran-war/33700659.html
40•thinkingemote•4h ago•53 comments

Ada and Spark on ARM Cortex-M – A Tutorial with Arduino and Nucleo Examples

http://inspirel.com/articles/Ada_On_Cortex.html
15•swq115•4d ago•1 comments

Chess in SQL

https://www.dbpro.app/blog/chess-in-pure-sql
135•upmostly•3d ago•27 comments

A dot a day keeps the clutter away

https://scottlawsonbc.com/post/dot-system
461•scottlawson•19h ago•136 comments

Randomness on Apple Platforms (2024)

https://blog.xoria.org/randomness-on-apple-platforms/
5•surprisetalk•5d ago•1 comments

New patches allow building Linux IPv6-only

https://www.phoronix.com/news/Linux-IPv6-IPv4-Legacy-Knobs
71•Bender•3h ago•59 comments

Show HN: 1-Bit Bonsai, the First Commercially Viable 1-Bit LLMs

https://prismml.com/
348•PrismML•19h ago•136 comments

AI has suddenly become more useful to open-source developers

https://www.zdnet.com/article/maybe-open-source-needs-ai/
33•CrankyBear•2h ago•20 comments

TinyLoRA – Learning to Reason in 13 Parameters

https://arxiv.org/abs/2602.04118
219•sorenjan•5d ago•40 comments

TruffleRuby

https://chrisseaton.com/truffleruby/
176•tosh•3d ago•24 comments

Apple Removes iPhone Vibe Coding App from App Store

https://gizmodo.com/apple-removes-iphone-vibe-coding-app-from-app-store-2000740084
24•randycupertino•1h ago•15 comments

The Document Foundation ejects its core developers

https://www.collaboraonline.com/blog/tdf-ejects-its-core-developers/
25•hackernewsblues•5h ago•7 comments

MiniStack (replacement for LocalStack)

https://ministack.org/
284•kerblang•19h ago•58 comments

The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

https://alex000kim.com/posts/2026-03-31-claude-code-source-leak/
1310•alex000kim•1d ago•535 comments

Bring Back MiniDV with This Raspberry Pi FireWire Hat

https://www.jeffgeerling.com/blog/2026/minidv-with-raspberry-pi-firewire-hat/
99•ingve•3d ago•17 comments

4D Doom

https://github.com/danieldugas/HYPERHELL
257•chronolitus•4d ago•67 comments