logoalt Hacker News

swiftcodertoday at 8:27 AM1 replyview on HN

> But are we really saying that the primary motivation for async/await is performance?

The original motivation for not using OS threads was indeed performance. Async/await is mostly syntax sugar to fix some of the ergonomic problems of writing continuation-based code (Rust more or less skipped the intermediate "callback hell" with futures that Javascript/Python et al suffered through).


Replies

PunchyHamstertoday at 10:07 AM

In some languages, yes, in others (js/python) async is just workaround about not having proper threading.