3 ms·
>All parallelism is asynchronous, but not all "asynchrony" is parallel. Sure, but my comment was not about parallelism compared to asynchronous, but about the
by coldtea 6mo ago
>All parallelism is asynchronous, but not all "asynchrony" is parallel.
Sure, but my comment was not about parallelism compared to asynchronous, but about the idea that Javascript is above the "blocking first mindset".
Javascript depends on a blocking (single-threaded, run-to-completion) backend. The asynchronicity on top of this blocking layer is an abstraction based on cooperative yielding.
Whereas e.g. Erlang's asynchronicity is part of the runtime model itself.
- scuff3d 6mo agoYeah but nothing I said disputed that. Practically all languages have concurrency built on top of an inherently single threaded execution environment. The two standouts are Erlang based languages and Go. My point, coming from Python, was that whenever I can I write the entire application as an asyncio app, which cuts down on the function coloring problem. That doesn't mean you don't have to be careful, it's super easy to accidentally block the event loop.