Hacker News new | ask | show | jobs
by bnchrch 1061 days ago
Honestly, I havent been a nodejs dev for a long time.

However from the outside in, if an alternative runtime was to steal the show so to speak, then Bun looks like it might be able to do it.

- Full interoperability with the existing ecosystem

- Typescript and JSX as first class

- Blazing fast compile times

- Can serve a very large number of concurrent requests

- And a standard library that does as much as the go stdlib

Someone please tell me why this is a bad project, because so far I want to jump in.

4 comments

You're reiterating Deno's feature list. Plus Deno's far more stable and works on Windows. So I'd suggest you go ahead and try Deno.
There's a big differentiator:

Bun is written in Zig while Deno is in Rust.

edit: I find this to be a big differentiator for those wanting to better understand how their tools work and hack/propose code changes when desired.

That's not a big differentiator.
Really hard to tell if this is sarcasm.
It's not bad, it's just still too early to "jump in", except to be an early adopter and perhaps one of the go-to experts when the bulk of the user developers come on board. The price for that is to always be prepared to refactor anything you build at this stage.
Bun is awesome. The only thing missing, for me at least, is streaming support (specifically for Server Sent Events [1]). Not sure if this release fixes it.

Nevertheless, have moved on to Go for servers so I don't really feel the need to go back to a Typescript/Javascript environment again. Rust is awesome for low level stuff. So quite happy with the combo of Go (for servers) and Rust (for everything else backend).

[1]: https://github.com/oven-sh/bun/issues/2443

Full duplex streaming (which Deno supports) would be even nicer. Not yet part of the WHATWG Streams: https://github.com/whatwg/fetch/issues/1254
The worst part of Bun is the lack of compatibility with other Node stuff. I’d use it if it weren’t for my wish to use Prisma on my project.