Maven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 11 months agoSTOP DOING ASYNClemmy.worldimagemessage-square90fedilinkarrow-up1706arrow-down139
arrow-up1667arrow-down1imageSTOP DOING ASYNClemmy.worldMaven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 11 months agomessage-square90fedilink
minus-squareMantisWaffle@lemmy.worldlinkfedilinkarrow-up3arrow-down2·edit-211 months agoYou cant say async is the fundamentally better model because threading is purposely crippled in the browser. The conversation at hand is not “how do io in browser”. Its “async is not inherently better than threads”
minus-squaremasterspace@lemmy.calinkfedilinkEnglisharrow-up1·edit-211 months agoNo, because async is fundamentally a paradigm for how to express asynchronous programming, i.e. situations where you need to wait for something else to happen, threading is not an alternative to that, callbacks are.
minus-squareMantisWaffle@lemmy.worldlinkfedilinkarrow-up1arrow-down1·11 months agoThreads are callbacks.
You cant say async is the fundamentally better model because threading is purposely crippled in the browser.
The conversation at hand is not “how do io in browser”. Its “async is not inherently better than threads”
No, because async is fundamentally a paradigm for how to express asynchronous programming, i.e. situations where you need to wait for something else to happen, threading is not an alternative to that, callbacks are.
Threads are callbacks.