7 ms·
Agreed. People conflate concurrency with parallelism a lot, so I guess people see async, squint, "hey this is just like threads", and then start grabbing for lo
by klabb3 5y ago
Agreed. People conflate concurrency with parallelism a lot, so I guess people see async, squint, "hey this is just like threads", and then start grabbing for locks.
It appears to me that Javascript has painted itself into a corner where it needs to maintain 3 concurrency models for the forseeable future (callbacks, async, service workers), which is unfortunate for ecosystem interop.
It's a shame because JS had this quite amazing property for such an old language that its concurrency model was simple, approachable and performant (within that single thread). Now that people build more general purpose stuff with it, those days are fading.