frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Async and Finaliser Deadlocks

https://tratt.net/laurie/blog/2025/async_and_finaliser_deadlocks.html
29•emailed•1h ago

Comments

aw1621107•1h ago
Dupe of [0], though there's only 1 comment on that submission as of this comment.

[0]: https://news.ycombinator.com/item?id=45898923

hinkley•38m ago
We use async code in two modes which have different very different consequences for concurrency issues.

We have an imperative code flow where we perform a series of tasks that involve IO, and apply the effects sequentially. Here the biggest problem is holding a lock for a long transaction and starving the rest of the system. So we break it up into a finite state machine where the lock is held mostly during the synchronous parts.

The other is asking a lot of questions and then making a decision based on the sum of the answers. These actually happen in parallel, and we often have to relax the effective isolation levels to make this work. But it always seems to work better if the parallel task can be treated as a pure function. Purity removes side effects, which removes the need for write locks, which if applied consistently removes the Dining Philosopher’s problem. “Applied consistently” is the hard part. Because it requires not just personal discipline but team and organizational discipline.

> There is usually not much of a point in writing a finalizer that touches only the object being finalized, since such object updates wouldn’t normally be observable. Thus useful finalizers must touch global shared state.

That seems like an “Abandon hope, all ye who enter here.”

wrcwill•37m ago
Unless I'm missing something, this has nothing to do with asynchronous code. The delete is just synchronous code running, same as if we called a function/closure right there.

This is just about syntax sugar hiding function calls.

hinkley•18m ago
I think it says if your async code holds locks you’re gonna have a bad time. Async and optimistic locks probably should go hand in hand.

I would think finalizers and async code magnify problems that are already there.

ltratt•15m ago
I'm assuming you're referring to the Python finaliser example? If so, there's no syntax sugar hiding function calls to finalisers: you can verify that by running the code on PyPy, where the point at which the finaliser is called is different. Indeed, for this short-running program, the most likely outcome is that PyPy won't call the finaliser before the program completes!

Ingress Nginx Retirement: What You Need to Know

https://www.kubernetes.dev/blog/2025/11/12/ingress-nginx-retirement/
1•gjvc•58s ago•0 comments

GLP-1 Drugs Linked to Dramatically Lower Death Rates in Colon Cancer Patients

https://today.ucsd.edu/story/glp-1-drugs-linked-to-dramatically-lower-death-rates-in-colon-cancer...
1•gmays•1m ago•0 comments

Hyperlink: On-device AI agent that searches and summarizes all your local files

https://hyperlink.nexa.ai/
1•alanzhuly•4m ago•0 comments

Phantom claims to be worlds first transparent monitor,5000nits of HDR brightness

https://www.tomshardware.com/monitors/the-phantom-claims-to-be-the-worlds-first-transparent-compu...
1•thelastgallon•4m ago•0 comments

Parrot – A C++ library for fused array operations using CUDA/Thrust

https://nvlabs.github.io/parrot/
1•operator-name•6m ago•0 comments

Critical RCE patched in Imunify360 affects up to 50M+ websites

https://patchstack.com/articles/remote-code-execution-vulnerability-found-in-imunify360/
1•oliversild•6m ago•0 comments

How high are OpenAI's compute costs? Possibly a lot higher than we thought

https://www.ft.com/content/fce77ba4-6231-4920-9e99-693a6c38e7d5
3•thereitgoes456•10m ago•0 comments

The Most Fascinating Machines: When Technology Transforms Everyday Life

https://guildnet.blogspot.com/2025/11/the-most-fascinating-machines-when.html
1•TraumenMaster•12m ago•1 comments

RF Multifunctional Components with Integrated Filtering Characteristics

https://www.mdpi.com/3042-5697/1/3/11
1•PaulHoule•16m ago•0 comments

GPU Benchmarks – Animation Error Methodology White Paper

https://gamersnexus.net/gpus-gn-extras-cpus/problem-gpu-benchmarks-reality-vs-numbers-animation-e...
1•Akronymus•16m ago•1 comments

Weakly-supervised object detection with attention maps and SAM

https://github.com/punnerud/attention_with_dataset
1•punnerud•17m ago•0 comments

Show HN: Scribe v2 Realtime – new SOTA real-time speech to text model

https://elevenlabs.io/realtime-speech-to-text
3•lharries•18m ago•0 comments

FEX: Emulate x86 Programs on ARM64

https://github.com/FEX-Emu/FEX
1•doruk101•20m ago•0 comments

Mystery 90s Industrial/goth/rap Demo Tape found while thrifting in Portland

https://old.reddit.com/r/Portland/comments/1ovdpaw/mystery_90s_industrialgothrap_demo_tape_found/
2•pavel_lishin•20m ago•0 comments

The Rise of Parasitic AI

https://www.lesswrong.com/posts/6ZnznCaTcbGYsCmqu/the-rise-of-parasitic-ai
2•d_silin•20m ago•0 comments

CC can't help my AI research exp – so I open-source this "AI research skills"

https://github.com/zechenzhangAGI/claude-ai-research-skills
1•amberjcjj•21m ago•1 comments

Show HN: Agent-to-Code JIT Compiler

https://docs.a1project.org
1•calebhwin•22m ago•0 comments

Ask HN: Typical tech job interview in late 2025?

2•dakiol•27m ago•2 comments

Valve Announces Steam Machine

https://store.steampowered.com/hardware/steammachine
1•metayrnc•28m ago•1 comments

The Overly Humble Programmer

https://jimmyhmiller.com/overly-humble-programmer
2•tobr•29m ago•0 comments

As 'Dorian Gray' ages, its relevance only grows

https://www.washingtonpost.com/books/2025/11/08/dorian-gray-oscar-wilde-history/
2•apollinaire•30m ago•0 comments

Is your electric bill going up? AI is partly to blame

https://www.npr.org/2025/11/06/nx-s1-5597971/electricity-bills-utilities-ai
16•ilamont•31m ago•11 comments

Ryanair tries forcing app downloads by eliminating paper boarding passes

https://arstechnica.com/gadgets/2025/11/ryanair-tries-forcing-app-downloads-by-eliminating-paper-...
6•sipofwater•31m ago•1 comments

Train On Your Groupchat: LoRA and in-browser inference to fine-tune your friends

https://www.brimtown.com/train-on-your-groupchat
1•brimtown•31m ago•0 comments

When Builders Became Bullies

https://blog.con.rs/2025/11/12/when-builders-became-bullies.html
1•conrs•31m ago•1 comments

Bark Air FAQ

https://air.bark.co/pages/faq
1•mooreds•34m ago•0 comments

Understanding high-entropy random number generation

http://memosisland.blogspot.com/2025/11/leymosun-high-entropy-randomness.html
1•northlondoner•35m ago•1 comments

How Should Shareholders Vote?

https://www.bloomberg.com/opinion/newsletters/2025-11-12/how-should-shareholders-vote
1•ioblomov•35m ago•1 comments

Looking for Hidden Gems in Scientific Literature

https://elicit.com/blog/literature-based-discovery
1•ravenical•37m ago•0 comments

I Sued my landlord and maybe you should too

https://medium.com/@brendan.salisbury/i-sued-my-landlord-maybe-you-should-too-af7fc938c530
2•hprotagonist•39m ago•1 comments