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•41m 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•40m 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•21m 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•18m 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!

The last-ever penny will be minted today in Philadelphia

https://www.cnn.com/2025/11/12/business/last-penny-minted
254•andrewl•3h ago•380 comments

Maestro Technology Sells Used SSD Drives as New

https://kozubik.com/items/MaestroTechnology/
71•walterbell•1h ago•32 comments

Steam Machine

https://store.steampowered.com/sale/steammachine
523•davikr•1h ago•224 comments

Steam Frame

https://store.steampowered.com/sale/steamframe
374•Philpax•2h ago•103 comments

Learn Prolog Now

https://lpn.swi-prolog.org/lpnpage.php?pageid=top
186•rramadass•5h ago•106 comments

Project Euler

https://projecteuler.net
64•swatson741•2h ago•17 comments

Yt-dlp: External JavaScript runtime now required for full YouTube support

https://github.com/yt-dlp/yt-dlp/issues/15012
699•bertman•9h ago•441 comments

Launch HN: JSX Tool (YC F25) – A Browser Dev-Panel IDE for React

28•jsunderland323•2h ago•20 comments

Async and Finaliser Deadlocks

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

Ioannis Yannas invented artificial skin for treatment of burns–dies at 90

https://news.mit.edu/2025/professor-ioannis-yannas-dies-1027
88•bookofjoe•1w ago•4 comments

Blasting Yeast with UV Light

https://chillphysicsenjoyer.substack.com/p/results-from-blasting-yeast-with
7•Gormisdomai•1h ago•0 comments

Fighting the New York Times' invasion of user privacy

https://openai.com/index/fighting-nyt-user-privacy-invasion
175•meetpateltech•5h ago•186 comments

.NET 10

https://devblogs.microsoft.com/dotnet/announcing-dotnet-10/
415•runesoerensen•1d ago•340 comments

Valve Announces New Steam Machine, Steam Controller and Steam Frame

https://www.phoronix.com/news/Steam-Machines-Frame-2026
70•doener•1h ago•1 comments

GPT-5.1: A smarter, more conversational ChatGPT

https://openai.com/index/gpt-5-1/
103•tedsanders•49m ago•119 comments

Waymo robotaxis are now giving rides on freeways in LA, SF and Phoenix

https://techcrunch.com/2025/11/12/waymo-robotaxis-are-now-giving-rides-on-freeways-in-these-3-cit...
215•nharada•3h ago•245 comments

A brief look at FreeBSD

https://yorickpeterse.com/articles/a-brief-look-at-freebsd/
34•todsacerdoti•7h ago•9 comments

How Tube Amplifiers Work

https://robrobinette.com/How_Amps_Work.htm
10•gokhan•1h ago•0 comments

What happened to Transmeta, the last big dotcom IPO

https://dfarq.homeip.net/what-happened-to-transmeta-the-last-big-dotcom-ipo/
174•onename•10h ago•90 comments

The Single Byte That Kills Your Exploit: Understanding Endianness

https://pwnforfunandprofit.substack.com/p/the-single-byte-that-kills-your-exploit
15•andwati•3d ago•1 comments

Micro.blog launches new 'Studio' tier with video hosting

https://heydingus.net/blog/2025/11/micro-blog-offers-an-indie-alternative-to-youtube-with-its-stu...
83•justin-reeves•6h ago•27 comments

Yann LeCun to depart Meta and launch AI startup focused on 'world models'

https://www.nasdaq.com/articles/metas-chief-ai-scientist-yann-lecun-depart-and-launch-ai-start-fo...
741•MindBreaker2605•12h ago•555 comments

Archive or Delete?

https://email-is-good.com/2025/11/05/archive-or-delete/
4•speckx•1w 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
17•ilamont•34m ago•14 comments

The Geometry Behind Normal Maps

https://www.shlom.dev/articles/geometry-behind-normal-maps/
86•betamark•6h ago•5 comments

NetHack4 Philosophy

http://nethack4.org/philosophy.html
47•suioir•1w ago•21 comments

UK pauses intelligence-sharing with US on suspected drug vessels in Caribbean

https://www.theguardian.com/uk-news/2025/nov/11/uk-suspends-intelligence-sharing-with-us-amid-air...
49•beardyw•1h ago•3 comments

Building a CI/CD Pipeline Runner from Scratch in Python

https://muhammadraza.me/2025/building-cicd-pipeline-runner-python/
22•mr_o47•3d ago•3 comments

Show HN: Cancer diagnosis makes for an interesting RL environment for LLMs

17•dchu17•2h ago•3 comments

Hard drives on backorder for two years as AI data centers trigger HDD shortage

https://www.tomshardware.com/pc-components/hdds/ai-triggers-hard-drive-shortage-amidst-dram-squee...
94•pabs3•14h ago•79 comments