Re:“What Alan Kay Got Wrong About Objects”
by 7thaccount on Sunday November 17, 2019 @09:07PM
(#21561388)
When you say "they", I assume you mean "browsers"? Sorry for the dumb question. I know precious little about web programming and concurrency.
[ Parent
| on HN ]
Re:“What Alan Kay Got Wrong About Objects”
by Izkata on Sunday November 17, 2019 @10:12PM
(#21561619)
Except for webworkers (relatively new, I've not used them and know little about them), javascript in browsers is single-threaded. Even asynchronous things like ajax requests can only handle the result once the thread finishes doing whatever it was doing.
Re:“What Alan Kay Got Wrong About Objects”
by 7thaccount on Monday November 18, 2019 @03:16AM
(#21562692)
Interesting and thanks for the explanation. Does it have to be single threaded?
Re:“What Alan Kay Got Wrong About Objects”
by ProfHewitt on Monday November 18, 2019 @06:28PM
(#21569242)
JavaScript in browsers was decreed by the standards committee to be single-threaded forever. Consequently, JavaScript is entirely lacking in concurrency constructs, e.g., implementing a region of mutual exclusion inside a JavaScript program.
Re:“What Alan Kay Got Wrong About Objects”
by 7thaccount on Tuesday November 19, 2019 @10:27AM
(#21573829)
Thanks! I assume that was for a reason? Or just oversight?