Playground Wisdom: Threads Beat Async/Await
Musings about async await again and why I think virtual threads are a better model.
Hasnain says:
Bookmarking for future re-reading as this will take a few turns to internalize.
"Future language design should rethink concurrency once more: Instead of adopting async/await, new languages should model themselves more like Java's Project Loom but with more user friendly primitives. But like Scratch, it should give programmers really good APIs that make concurrency natural. I don't think actor frameworks are the right fit, but a combination of structured concurrency, channels, syntax support for spawning/joining/selecting will go a long way. Watch this space for a future blog post about some things I found to work better than others."
Posted on 2024-11-23T06:18:02+0000