News for hackers. Stuff that matters.
Re:Python has had async for 10 years – why isn't it more pop... by jongjong on Tuesday September 02, 2025 @05:53PM (#45109610)
Yes and JS had a smooth on-ramp to async/await thanks to Promises.

Promises/thenables gave people the time to get used to the idea of deferred evaluation via a familiar callback approach... Then when async/await came along, people didn't see it as a radically new feature but more as syntactic sugar to do what they were already doing in a more succinct way without callbacks.

People in the Node.js community were very aware of async concepts since the beginning and put a lot of effort in not blocking the event loop. So Promises and then async/await were seen as solutions to existing pain points which everyone was already familiar with. A lot of people refactored their existing code to async/await.

Re:Python has had async for 10 years – why isn't it more pop... by laurencerowe on Tuesday September 02, 2025 @06:51PM (#45110140)
JavaScript’s Promises were of course heavily influenced by Twisted’s Deferreds in Python, from the days before async/await.