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