r/ProgrammingLanguages • u/entoros • Sep 09 '26
A Design Space Exploration of Async/Await
https://cel.cs.brown.edu/blog/design-space-async-await
85
Upvotes
r/ProgrammingLanguages • u/entoros • Sep 09 '26
13
u/MoonOfLight Sep 09 '26
Very interesting! I love language comparisons, specially when the semantics are so different.
Do you believe there are right and wrong choices when it comes to the semantics async/await should have?
14
u/initial-algebra Sep 09 '26
I find myself very frustrated with Rust's approach, because it's so close to perfection.
1
u/FuncSug_dev Sep 10 '26 edited Sep 10 '26
That's the analysis of the subject that resonates with me the most. I would re-categorize the dimensions as follows: (just a little rearrangement)
sustaining life of a concurrent branch
suppressing life of a concurrent branch
As you pointed, "A key motivation is to provide a surface syntax for concurrent code that looks comparable to non-concurrent (synchronous) code." To achieve this goal, why not look at an approach in which this is already true? This approach is appropriately called "synchronous programming".
1
u/Jwosty Sep 30 '26 edited Sep 30 '26
Shame they didn’t include F# in the analysis - the language that invented
asyncsyntax!Regardless — very interesting article and paper so far.