4 ms·
Well look at Erlang/Elixir. Async everything is fine if your language is immutable and has preemptable execution. You just write code, and the system figures o
by true_religion 5y ago
Well look at Erlang/Elixir. Async everything is fine if your language is immutable and has preemptable execution.
You just write code, and the system figures out how to break things up.
But that’s a system that was designed from the ground up to be async. In JavaScript it was added after the fact, and you as a programmer have to deliberately annotate your functions to be aware of what is and isn’t async.
- thdxr 5y agoElixir and Erlang aren't async everything. Everything runs synchronously by default, you need to use separate primitives to turn it async
- true_religion 5y agoBy the way you approach it, JavaScript isn’t async everything because you need to deliberately define a promise or async function… However the OP and I, are talking about async everything as a programming methodology and not as a fundamental part of the base system.
- cutler 5y agoAsync != concurrent.