Maven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 9 months agoSTOP DOING ASYNClemmy.worldimagemessage-square63fedilinkarrow-up1715arrow-down139
arrow-up1676arrow-down1imageSTOP DOING ASYNClemmy.worldMaven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 9 months agomessage-square63fedilink
minus-squareMantisWaffle@lemmy.worldlinkfedilinkarrow-up3arrow-down2·edit-29 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-29 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·9 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.