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

Comments

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

Claude Opus 4.7

https://www.anthropic.com/news/claude-opus-4-7
1718•meetpateltech•18h ago•1229 comments

Codex for almost everything

https://openai.com/index/codex-for-almost-everything/
848•mikeevans•15h ago•430 comments

How to make buffet breakfasts less wasteful

https://www.economist.com/science-and-technology/2026/04/14/how-to-make-buffet-breakfasts-less-wa...
9•austinallegro•49m ago•10 comments

A Python Interpreter Written in Python

https://aosabook.org/en/500L/a-python-interpreter-written-in-python.html
51•xk3•3d ago•11 comments

CadQuery is an open-source Python library for building 3D CAD models

https://cadquery.github.io/
133•gregsadetsky•2d ago•22 comments

FIM – Linux framebuffer image viewer

https://www.nongnu.org/fbi-improved/
16•Mr_Minderbinder•1h ago•6 comments

30 Years of HPC: many hardware advances, little adoption of new languages

https://chapel-lang.org/blog/posts/30years/
39•matt_d•3d ago•7 comments

Show HN: SPICE simulation → oscilloscope → verification with Claude Code

https://lucasgerads.com/blog/lecroy-mcp-spice-demo/
72•_fizz_buzz_•7h ago•12 comments

Guy builds AI driven hardware hacker arm from duct tape, old cam and CNC machine

https://github.com/gainsec/autoprober
164•scaredpelican•10h ago•37 comments

Official Clojure Documentary page with Video, Shownotes, and Links

https://clojure.org/about/documentary
193•adityaathalye•13h ago•48 comments

Android CLI: Build Android apps 3x faster using any agent

https://android-developers.googleblog.com/2026/04/build-android-apps-3x-faster-using-any-agent.html
221•ingve•13h ago•77 comments

ReBot-DevArm: open-source Robotic Arm

https://github.com/Seeed-Projects/reBot-DevArm
50•rickcarlino•3d ago•10 comments

A Better R Programming Experience Thanks to Tree-sitter

https://ropensci.org/blog/2026/04/02/tree-sitter-overview/
121•sebg•11h ago•14 comments

Human Accelerated Region 1

https://en.wikipedia.org/wiki/Human_accelerated_region_1
36•apollinaire•4h ago•8 comments

Playdate’s handheld changed how Duke University teaches game design

https://news.play.date/news/duke-playdate-education/
136•Ivoah•13h ago•55 comments

Substrate AI Is Hiring Harness Engineers

https://www.ycombinator.com/companies/substrate/jobs/QJU9023-harness-engineer
1•kunle•5h ago

Building a Web Page That Edits Itself

https://www.patrickweaver.net/blog/one-pager-self-editing-html/
11•evakhoury•3d ago•2 comments

Qwen3.6-35B-A3B: Agentic coding power, now open to all

https://qwen.ai/blog?id=qwen3.6-35b-a3b
1061•cmitsakis•18h ago•462 comments

Discourse Is Not Going Closed Source

https://blog.discourse.org/2026/04/discourse-is-not-going-closed-source/
102•sams99•4h ago•35 comments

Bluesky has been dealing with a DDoS attack for nearly a full day

https://www.theverge.com/tech/913638/bluesky-has-been-dealing-with-a-ddos-attack-for-nearly-a-ful...
74•dotmanish•4h ago•24 comments

Cloudflare's AI Platform: an inference layer designed for agents

https://blog.cloudflare.com/ai-platform/
276•nikitoci•19h ago•66 comments

US Bill Mandates On-Device Age Verification

https://reclaimthenet.org/us-bill-mandates-on-device-age-verification
125•ronsor•5h ago•56 comments

A Git helper tool that breaks large merges into parallelizable tasks

https://github.com/mwallner/mergetopus
27•schusterfredl•4d ago•3 comments

Century-bandwidth antenna reinvented,patented after 18 yrs with decade bandwidth

https://ieeexplore.ieee.org/document/1715264
11•teleforce•3d ago•4 comments

The future of everything is lies, I guess: Where do we go from here?

https://aphyr.com/posts/420-the-future-of-everything-is-lies-i-guess-where-do-we-go-from-here
602•aphyr•19h ago•635 comments

PROBoter – Open-source platform for automated PCB analysis

https://www.schutzwerk.com/en/blog/proboter-01/
4•kuizu•2h ago•0 comments

The beginning of scarcity in AI

https://tomtunguz.com/ai-compute-crisis-2026/
60•gmays•11h ago•90 comments

New unsealed records reveal Amazon's price-fixing tactics, California AG claims

https://www.theguardian.com/us-news/ng-interactive/2026/apr/16/amazon-price-fixing-california-law...
209•kmfrk•10h ago•49 comments

Everything we like is a psyop?

https://techcrunch.com/2026/04/16/everything-we-like-is-a-psyop/
246•evo_9•9h ago•156 comments

Launch HN: Kampala (YC W26) – Reverse-Engineer Apps into APIs

https://www.zatanna.ai/kampala
87•alexblackwell_•17h ago•74 comments