4 ms·
And there are runtimes that do that, like Erlang's BEAM. At least Node concurrency is a step in the right direction, as it's much easier to reason about than th
by erokar 9y ago
And there are runtimes that do that, like Erlang's BEAM. At least Node concurrency is a step in the right direction, as it's much easier to reason about than threads on the JVM.
- kuschku 9y agoJS 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.