News for hackers. Stuff that matters.
Re:Niklaus Wirth has died by hathawsh on Wednesday January 03, 2024 @08:20PM (#38861986)
Meanwhile, in JS/ECMAScript land, async/await is used everywhere and it simplifies a lot of things. I've also used the construct in Rust, where I found it difficult to get the type signatures right, but in at least one other language, async/await is quite helpful.
Re:Niklaus Wirth has died by samus on Thursday January 04, 2024 @12:57AM (#38863582)
Await is simply syntactic sugar on top of what everybody was forced to do already (callbacks and promises) for concurrency. As a programming model, threads simply never had a chance in the JS ecosystem because on the surface it has always been a single-threaded environment. There's too much code that would be impossible to port to a multithreaded world.