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.

Initial Assessment of Anthropic's Findings on Lattice Cryptography (CIRG)

https://cirg.org/statements/1/?dedupe
373•nwcs•4h ago•239 comments

Galactic quasi-polynomial quantum algorithms for integral and module lattices [pdf]

https://github.com/anthropics/formal-math/blob/main/lattices/papers/01-quasi-polynomial-quantum-a...
189•Skrillor•4h ago•92 comments

Best Buy will officially sell physical media in stores again

https://media4k.pages.dev/best-buy-will-officially-sell-physical-media-in-stores-again/
225•kartik147•4h ago•152 comments

CrowdGPT – A Collaboratively Trained AI

https://www.crowdgpt.net/
342•Vxtzq•7h ago•130 comments

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs

https://github.com/QuixiAI/nvdriver
825•rreyes1979•15h ago•415 comments

Cryptanalytic result from Anthropic: paper title leaked

https://twitter.com/justalexoki/status/2127397764250456277
534•aklein•11h ago•720 comments

Usb2shell: Root on Linux from a USB Plug-In

https://usb2shell.com/
151•matanyall•6h ago•58 comments

Advent of Puzzles – An advent calendar with 25 logic puzzles

https://adventofpuzzles.io/
79•ruslan5t•3h ago•32 comments

Red heads are linked to a mutation that makes them resistant to anesthesia (2024)

https://health.clevelandclinic.org/why-do-redheads-need-more-anesthesia
40•illidan1000•2h ago•16 comments

Post-quantum cryptography is still safe

https://blog.cloudflare.com/pq-is-still-safe/
31•soheilpro•2h ago•1 comments

Homomorphic encrypted Llama 3.1 8B at 1.7 tokens per second

https://bel.belfortlabs.com/
78•solyin•5h ago•31 comments

Satmux: 3.6x faster inflight Wi-Fi via BBR TCP multiplexing

https://github.com/Th0rgal/satmux
27•joshcsimmons•1d ago•2 comments

We Must Pace the Frontier, Part 2

https://darioamodei.com/post/we-must-pace-the-frontier-part-2
397•denysvitali•14h ago•829 comments

I built an LLM where Gemini 4 wrote the initial weights as code

https://weights-as-code.pages.dev/
490•umjunsik132•14h ago•164 comments

People must remain in control of the future

https://openai.com/index/people-must-remain-in-control-of-the-future/
170•j4mie•8h ago•264 comments

Why is the keyboard and telephone numbers in a different order? (2020)

https://retrocomputing.stackexchange.com/questions/15611
27•Skyfall106•3h ago•3 comments

Show HN: Understanding FAT16 – an interactive filesystem explainer

https://fat16.asciitweezers.com/
32•giant_fern•2d ago•2 comments

ItaliaCiv

https://italiaciv.it/
76•simonebrunozzi•5h ago•11 comments

Show HN: Device, a free open-source DAW for Mac, Windows and Linux

https://devicedaw.github.io/
109•devicedaw•8h ago•46 comments

iOS on iPod Nano

https://github.com/nfzerox/iOSOniPodNano
170•msephton•2d ago•60 comments

US public sector cyberdefenders can find vulnerabilities with Mythos in GovCloud

https://claude.com/resources/articles/claude-mythos-5-2-in-aws-govcloud
145•lumpa•11h ago•61 comments

Roc version 0.1.0, eight years in the making

https://rtfeldman.com/roc-0.1.0
449•DrDeadCrash•15h ago•119 comments

Rail Cube in Prolog

https://chen.cat/prolog/railcube/
35•triska•1d ago•0 comments

A Visual Guide to Agent Harnesses

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses
200•mariuz•10h ago•33 comments

FujiKit – Open-source Fujifilm X-series protocol spec, Swift SDK, and CLI

https://github.com/maam00/fujikit
98•maam00•9h ago•20 comments

Uncovering Hidden TCP Throttling in the Linux Kernel

https://www.cdn77.com/blog/debugging-nginx-linux-contribution
331•josefinaspidlen•14h ago•37 comments

Behringer shuts down its German development center after 37 Years

https://synthanatomy.com/2026/11/behringer-shuts-down-its-german-development-center-after-37-year...
227•mobilio•7h ago•143 comments

How to Crochet Hyperbolic Space

https://crochetcoralreef.org/artscience/hyperbolicspace/
54•rectalogic•2d ago•2 comments

A 5090 has more transistors than existed on the planet in 1972

https://piyh.github.io/transistor-history-vs-flagship-devices/
342•piyh•9h ago•147 comments

From one Claude Code session to a team of agents

https://rjcorwin.github.io/blog/from-one-claude-code-session-to-a-team-of-agents.html
3•staticvar•1h ago•1 comments