Re:JEP proposed to target JDK 19: 425: Virtual Threads (Prev...
by olliej on Monday May 02, 2022 @02:10PM
(#31238654)
> This seems so obvious in hindsight as the "right way". I wonder why we went down that whole async/await craze with so many languages?
That’s basically what async swift does?
It is also orthogonal to async/await.
Async/await is a mechanism a programming language uses to allow you to write straight line code without having to write blocking code. You could resolve that by creating a hulking thread, but that just means you need to await a thread result :)
Also JS isn’t going anywhere, and it seems unlikely it will ever get multiple execution threads
That’s basically what async swift does?
It is also orthogonal to async/await.
Async/await is a mechanism a programming language uses to allow you to write straight line code without having to write blocking code. You could resolve that by creating a hulking thread, but that just means you need to await a thread result :)
Also JS isn’t going anywhere, and it seems unlikely it will ever get multiple execution threads