frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

US vs. Google Amicus Curiae Brief of Y Combinator in Support of Plaintiffs [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.dcd.223205/gov.uscourts.dcd.223205.1300.1.pdf
218•dave1629•4h ago•301 comments

A Critical Look at MCP

https://raz.sh/blog/2025-05-02_a_critical_look_at_mcp
134•ablekh•4h ago•62 comments

Reverse engineering the 386 processor's prefetch queue circuitry

http://www.righto.com/2025/05/386-prefetch-circuitry-reverse-engineered.html
44•todsacerdoti•2h ago•17 comments

Prolog's Eternal September (2017)

https://storytotell.org/prologs-eternal-september
44•Tomte•2d ago•27 comments

The deathbed fallacy

https://www.hjorthjort.xyz/2018/02/21/the-deathbed-fallacy.html
188•mefengl•9h ago•86 comments

Show HN: Code Claude Code

https://github.com/RVCA212/codesys
48•sean_•4h ago•11 comments

Comparison of C/POSIX standard library implementations for Linux

https://www.etalabs.net/compare_libcs.html
38•smartmic•4h ago•13 comments

Sam Altman Wants Your Eyeball

https://www.privacyguides.org/articles/2025/05/10/sam-altman-wants-your-eyeball/
113•ChiptuneIsCool•2h ago•101 comments

Vision Now Available in Llama.cpp

https://github.com/ggml-org/llama.cpp/blob/master/docs/multimodal.md
439•redman25•15h ago•92 comments

Weave (YC W25) is hiring a founding engineer

https://www.ycombinator.com/companies/weave-3/jobs
1•adchurch•2h ago

Update turns Google Gemini into a prude, breaking apps for trauma survivors

https://www.theregister.com/2025/05/08/google_gemini_update_prevents_disabling/
28•Bender•49m ago•6 comments

Building Local-First Flutter Apps with Riverpod, Drift, and PowerSync

https://dinkomarinac.dev/building-local-first-flutter-apps-with-riverpod-drift-and-powersync
7•kobieps•3d ago•4 comments

Embracer Games Archive is preserving 75000 video games and needs contributions

https://embracergamesarchive.com/
90•draugadrotten•7h ago•42 comments

Even Tesla's Insurance Arm Is Getting Wrecked

https://insideevs.com/news/759156/tesla-insurance-loss-higher-average/
14•ryan_j_naughton•55m ago•2 comments

React Three Ecosystem

https://www.react-three.org/
74•bpierre•6h ago•25 comments

LTXVideo 13B AI video generation

https://ltxv.video/
180•zoudong376•7h ago•53 comments

Private Japanese lunar lander enters orbit around moon ahead of a June touchdown

https://phys.org/news/2025-05-private-japanese-lunar-lander-orbit.html
160•pseudolus•3d ago•52 comments

Intel: Winning and Losing

https://www.abortretry.fail/p/intel-winning-and-losing
59•rbanffy•7h ago•28 comments

A simple 16x16 dot animation from simple math rules

https://tixy.land
256•andrewrn•16h ago•57 comments

The Price of Remission

https://www.propublica.org/article/revlimid-price-cancer-celgene-drugs-fda-multiple-myeloma
10•danso•2d ago•1 comments

Gmail to SQLite

https://github.com/marcboeker/gmail-to-sqlite
253•tehlike•14h ago•71 comments

Radxa Orion O6 brings Arm to the midrange PC (with caveats)

https://www.jeffgeerling.com/blog/2025/radxa-orion-o6-brings-arm-midrange-pc
70•goranmoomin•6h ago•53 comments

Show HN: Sprigman – Pac-Man Recreated in a Limited Tile Based JavaScript Engine

https://sprig.hackclub.com/share/X4EGvOFk1q8FroEPCj1G
9•kuberwastaken•2d ago•1 comments

Farewell to Lee Gold's Alarums and Excursions

https://www.chaosium.com/blogout-of-the-suitcase-54-farewell-to-lee-golds-alarums-excursions/
10•jdkee•3h ago•1 comments

'We Currently Have No Container Ships,' Seattle Port Says

https://www.newsweek.com/seattle-port-says-no-container-ships-tariffs-2069464
126•pseudolus•3h ago•50 comments

Unique Games Conjecture

https://en.wikipedia.org/wiki/Unique_games_conjecture
7•surprisetalk•2h ago•0 comments

Loss of dance and infant-directed song among the Northern Aché

https://www.cell.com/current-biology/fulltext/S0960-9822(25)00447-6
56•PaulHoule•3d ago•9 comments

Pakistani Govt shares game footage as real military action

https://ukdefencejournal.org.uk/pakistani-govt-shares-game-footage-as-real-military-action/
10•_tk_•57m ago•0 comments

Detect and crash Chromium bots

https://blog.castle.io/detect-and-crash-chromium-bots-with-one-weird-trick-bots-hate-it/
93•avastel•3d ago•32 comments

In praise of grobi for auto-configuring X11 monitors

https://michael.stapelberg.ch/posts/2025-05-10-grobi-x11-monitor-autoconfig/
61•secure•12h ago•14 comments
Open in hackernews

Fixrleak: Fixing Java Resource Leaks with GenAI

https://www.uber.com/en-IL/blog/fixrleak-fixing-java-resource-leaks-with-genai/
19•benocodes•3d ago

Comments

leosanchez•4h ago
C# has Roslyn analyzers for this. Doesn't java have something similar ? Is AI appropriate technology for static analysis ?
jillesvangurp•4h ago
There were static code analyzers like findbugs able to do stuff like this 20 years ago. These days, your IDE should tell you off as well. And hopefully teams configure their builds to catch stuff like this using any of the available plugins for this.

LLMs seems overkill for this. But of course letting it do general code reviews is not a bad idea. And static code analyzers aren't perfect. Doing this at scale might be a bit tricky though; you'd have to go file by file. I assume Uber might have many millions of lines of code to screen. And maybe their developers aren't that concerned with addressing warnings.

But going file by file might be simple enough. And you can probably screen for important stuff with some decent system prompt and instruct it to check for potential resource leaks and similar issues and produce detailed bug reports with some priority if it finds them and a diff that addresses the issue. Could be a nice use case for agentic AIs to screen code like this.

TYMorningCoffee•4h ago
These existing tools (spotbugs, findings, sonarqube, null away, checker framework, pmd, etc) provide detection but not resolution. Resolution thru LLM is what Uber proposes.
nradov•2h ago
Resolution of the kind of resource leaks that SonarQube finds is usually the work of a few seconds. And it should be integrated into the developer workflow in such a way that those bugs are found and fixed before the code even gets checked in. In other words, if that code is even making it into a repo where GenAI can find and fix it then you have deeper engineering process problems. Fix the root cause rather than patching around them with more tools.

And once SonarQube flags a resource leak to a developer, a competent developer would learn from that and never make the same mistake again.

TYMorningCoffee•4h ago
It's not identifying the leaks. In their architecture they use Sonar qube for the detecting. The LLM provides the fix.
nitinreddy88•4h ago
Is this open sourced? It would be super useful if we can run against open source community projects to see the accuracy
TYMorningCoffee•4h ago
This architecture is promising. Large legacy code bases can have static analysis violations in the 1000s which devs never have the time to address. I've seen sonar tube reports that require man years to resolve everything.
time4tea•4h ago
This could be interesting, but all the example code is so poor, and the extent of the fix so limited that it feels like this is 'AI' for the sake of it.

Stringly-typed, catch-log-ignore, generates warnings in IDE anyway...

Fixed 90 of 125 errors that were found by a different technology... probably.could have been fixed by one developer in 1-2 days anyway - how long did this take?

daxfohl•3h ago
Mostly agree with these points, but it does say that it automates some of the fixes in complex cases that the non-AI tool couldn't handle.

Besides, gotta start somewhere. It's probably a PoC, for a platform that will eventually handle all sorts of things.

johnbender•2h ago
> Besides, gotta start somewhere. It's probably a PoC, for a platform that will eventually handle all sorts of things.

I agree and I think we should give folks leeway to make progress but this seems to be the qualifier for nearly every GenAI demo I’ve seen

tuyguntn•2h ago
> all the example code is so poor, and the extent of the fix so limited

I agree about the limitations, but look from another perspective, is it good use of time asking experienced engineers who get paid 300-500k/year to go and fix these issues? Probably no.

Would it bring them a joy finding simple leaks and fixing them? Probably no again.

Then this tool is a nice addition to the engineers

fjwufjfa•3h ago
> try (BufferedReader reader = new BufferedReader (new FileReader (filePath) )){

won't FileReader leak if the BufferedReader constructor throws?

nick__m•3h ago
That BufferedReader constructors is not supposed to throw, unless the reader is null or you're out of memory. If your out of memory you should probably abort the program execution because the difficulty of correctly recovering from an OOM exception is between hard and impossible.

Edit: Disregard the above, it was too naive.

It cannot leak because of a stronger warranty. In the JLS, it is specified that the try-with-resources track successfull initialisation of AutoClosable resources, not successful assignation. So one try with resources can desugar into the logical equivalent of multiple nested try-catch-finally !

delusional•2h ago
> difficulty of correctly recovering from an OOM exception is between hard and impossible.

In Java out of memory is signaled with an OutOfMemoryError which is a throwable (and can be caught) but is not technically an exception. Errors should generally never be caught and cannot be recovered from, which is how they differ from exceptions.

nick__m•2h ago
It's possible to recover enough to cleanly save the user work and shutdown. You have to mesure of much memory you need for a clean shutdown and allocate a byte[sizeForShutdown] at the start of the application in the top level exception handler (the only one that should catch that error) and free that byte array before doing anything else.

Now you can argue that this is not truly recovering from exception but it is a lot better than what you can do with most of the other Error subclasses. I said most because there are easy to recover from Error like the StackOverflowError where you just have to fail the operation or request that caused the error.

nradov•2h ago
Does the JLS actually guarantee that if you free that byte array then the extra memory will be immediately available? I thought there could potentially be some lag. The safer approach would be to create all of the objects you need for a clean shutdown during program launch and keep them around. Then you won't need to allocate any memory in the exception handler.
adra•52m ago
It's not great, but you can always catch and retry if your belief is that the GC will free enough memory to allow the attempt to continue after the memory pressure subsides.

Let's say you get 1/100 requests that are randomly sent to your process. That 1 takes 100x the average memory usage of the others. You could spin it out to different services to better handle the weird one-off, but that doesn't always make sense. Sometimes you just need to be ok with working the 100x job and let the other 99 get progressive falloff retry. Different solutions are always possible.

kburman•1h ago
I'm not sure I fully understand the purpose of this tool. Modern IDEs are quite good at detecting these types of issues. And if they don't catch something, I often just copy and paste the method with some context-into an LLM and ask it to find the problem. It usually handles all the necessary changes for me.