logoalt Hacker News

afioriyesterday at 6:57 PM1 replyview on HN

JavaScript's execution model uses cooperative concurrency to avoid a tons of data races, preemptive non-parallel concurrency would make all web development incredibly harder


Replies

ameliusyesterday at 10:02 PM

Yes, I was talking from a performance/UX standpoint.

Of course, doing everything in one thread most of the time makes everything easier, because you're using the thread as the lock, so to speak. But using locks is bad for performance and latency and thus UX.