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