logoalt Hacker News

cromkalast Sunday at 11:17 AM4 repliesview on HN

I am getting into the frontend dev and one thing that I don't understand is why people use bun in the first place? It's not much better preforming, it's not much safer, it's still not 100% compliant. Some tests show it's actually slower than node. Why bother switching, then?


Replies

awestrokelast Sunday at 11:36 AM

Faster package manager

Faster startup

Typescript support out of the box

Better stdlib than node

Stdlib includes yaml, sqlite etc so you need to pull in fewer deps, so you can avoid the left-pad/is-even node_modules explosion problem to a greater extent

show 1 reply
vips7Llast Sunday at 7:32 PM

I don’t think you would use Bun for front end.

show 2 replies
frollogastonlast Sunday at 11:12 PM

So much of JS dev is just saying no to random new stuff, Bun included

johnny22last Sunday at 11:25 AM

i assume it's because of all the built in tooling that node doesn't ship with.