3 ms·
JS is just introducing threads with shared state right now. Node concurrency is now as easy to reason about as JVM concurrency. Except, on the JVM, all these i
by kuschku 9y ago
JS is just introducing threads with shared state right now. Node concurrency is now as easy to reason about as JVM concurrency.
Except, on the JVM, all these issues were solved years ago, and we nowadays have amazing libraries to deal with all the issues for us.
- pitaj 9y agoThere is a proposal for shared memory and atomics, which are absolutely opt-in at the moment. You can easily use the event loop if you don't need parallel processing.
- kuschku 9y agoAnd you can use an event loop in Java today if you want, the question is more about library support. And that is certainly changing in both alnguages now, in Java towards promises, in JS towards threads.