logoalt Hacker News

solarkraft • yesterday at 12:51 AM • 4 replies • view on HN

Oh look, we’re consolidating again. My only gripe with it was that it wouldn’t directly run Typescript. Other than that it just felt a little ... antiquated.

Bun seems popular too, what would be reasons to choose it?


Replies

norman784 • yesterday at 7:02 AM

The only reason to choose Node is because it's boring, is a long lived project and I think it will outlive Bun and Deno.

WorldMaker • yesterday at 7:42 PM

Node directly runs Typescript now, just not inside libraries (for political reasons not technical ones). It's type stripping approach is the strictest compared to Deno/Bun in that you must turn on a bunch of Typescript linting like Isolated Modules and Erasable Syntax Only to get it to work (and not use enums or namespaces). (Which is in line with the strictness suggested by the Type Annotations TC-39 proposal, for what it is worth.)

asutekku • yesterday at 5:01 AM

Bun is much much more lighter than node or deno. If you don't mind the controversy around the rust rewrite, it's objectively the better option in most cases.

➕ show 2 replies
wetpaws • yesterday at 12:53 AM

[dead]