Hacker News new | ask | show | jobs
by sgtnasty 1735 days ago
How many runtimes are there for JS? They seem to pop up once a week...
2 comments

Practically, number of browsers + 2 (Node and Deno, and Deno is stretching the definition of practical at this early stage).

Edit: + Electron + the JS runtime used for Windows ecosystem based on Chakra (not sure if that's still alive though?) + a few other similar ones in that vein for desktop or mobile OS'.

+ whatever is available for embedded & similar devices, (I guess there will be a few but I know little about that area).

+ various [highly] specialised business/academic/hobby/PoC/etc runtimes, but they're not realistically things that many people care about.

follow up question: how many different incompatible ways to require(), import … are there?
Two (import + require, which, as import didn't exist, was necessary). Most current tooling is built to handle both (Deno draws a line under it by disallowing the older one)