Maven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 2 years agoSTOP DOING ASYNClemmy.worldimagemessage-square61linkfedilinkarrow-up1716arrow-down139
arrow-up1677arrow-down1imageSTOP DOING ASYNClemmy.worldMaven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 2 years agomessage-square61linkfedilink
minus-squareMantisWaffle@lemmy.worldlinkfedilinkarrow-up3arrow-down2·edit-22 years 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-22 years 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·2 years 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.