Bun (can become) the ideal JavaScript runtime
alexhultman.medium.com
alexhultman.medium.com
I will save you the google. Bun is a javascript runtime, that includes node_modules resolving, typescript, jsx; and is written in zig. It’s currently in beta.
https://github.com/oven-sh/bun#not-implemented-yet
Apparently it’s fast.
It needs to be adjusted to include javascript runtimes now.
Is there are name for this phenomenon? Pre-emptively derailing yourself based on your idea that (((they))) will do it anyway?
- general paranoia
- Persecutory delusion https://en.wikipedia.org/wiki/Persecutory_delusion
- Victim playing https://en.wikipedia.org/wiki/Victim_playing
From what I understand the author was proposing some solutions which could speed up node by a lot, but this wasn't considered by node community for some reason. Not sure if he did or is it only marketing trick to make others use his lib.
However I don't understand one thing - why thing like uwebsockets wasn't merged into/incorporated into node runtime if it is, in author's terms, clearly much much better? Node is used by millions of people and significant performance improvement is a big deal. I really don't get it.
Hence the question - does somebody use it in prod (uwebsockets.js) and can share their experience?
ps.
Node: 156.15/s
Bun: 283.51/s
[1] https://www.reddit.com/r/node/comments/vwuxqr/node_is_3_time...
[1] https://github.com/uNetworking/uWebSockets/discussions/1466