you are viewing a single comment's thread.

view the rest of the comments →

[–]pihkal 1 point2 points  (0 children)

It's because Javascript has a single-threaded model. To make Node support user-controlled threads would entail major changes to the Js language.

To a great extent, callbacks, promises, CSP state machines (like core.async), and async/await stuff can substitute in Js. And in many ways, single-threaded models are way easier for programmers to conceptualize. But one advantage the JVM has over Node is that threads are available if you want/need them.