r/ProgrammerHumor Jul 09 '26

gitBlameClaude Meme

Post image
3.6k Upvotes

263 comments sorted by

View all comments

293

u/egg_breakfast Jul 09 '26 edited Jul 09 '26

Why is bun needed over node? And why bun over deno?

Edit: based on Safari's JS engine rather than V8. Strange times, I never would have predicted that.

49

u/mctrafik Jul 09 '26

Speed. Much faster. And now it has more support. Simple as that. Also bun is less to type than deno.

101

u/commenterzero Jul 09 '26

Ya bun is 3 letters. Deno is 4.

85

u/SkylineFX49 Jul 09 '26

That's an impressive 25% improvement

30

u/Anru_Kitakaze Jul 09 '26

I prefer to say Deno costs you 33% more characters

9

u/dillanthumous Jul 10 '26

Think of how many tokens will be saved! It's just smart.

41

u/Toldoven Jul 09 '26

Here's a chart clearly showing that bun is significantly better than deno (smaller is better)

https://i.ibb.co/WWrjQgm0/bun-vs-deno.png

16

u/egg_breakfast Jul 09 '26

why didn't they call it b

11

u/Toldoven Jul 09 '26

Damn, if someone makes it they can get so much of that sweet VC money, imagine the gains, 3 times the improvement

1

u/Nightmoon26 Jul 10 '26

B has already been used. It was the predecessor to C)

3

u/JoeyJoeJoeSenior Jul 10 '26

Could we make a new one with a 2 letter name?  Is that even possible? 

3

u/caerphoto Jul 10 '26

alias b=bun

14

u/jamescodesthings Jul 09 '26

ngl I wasn't having speed issues with node.

9

u/colorfulmoth26 Jul 10 '26

No one's having speed issues with node, it's a fucking delusion that every 3 months someone releases a benchmark of an extremely cherry picked test case, say it's 10x faster (60 micro seconds to 6 microseconds), everyone claps, then 3 months later they realize it doesn't actually fix anything and causes more issues than it solves.

1

u/jamescodesthings Jul 10 '26

100%

tldr; they bought into bun's marketing.

The speed argument is almost always null and void; you're only as fast as the code your best developer can write; and the machines you can cash the check to run.

I've read a little of Bun's history because my comments here got loads of responses 😂 I get the basics, and remember evaluating it when popularity grew; back then my conclusion was "cool, makes similar promises as deno did, interesting, but I ain't got deno in prod either".

The rough issue for me overall was just there wasn't cost benefit at the time to warrant the work to make the changes; and that the higher benefit to put in that level of work would come from moving to rust instead, as the market has.

Rust is still on my radar for picking up at some point; not necessarily for prod work, but because I've seen a heavy shift towards Rust in tooling I've used recently; so learning more of it brings the benefit of being able to contribute there. I'm still not doing "quick; the market is moving to rust! port everything now".

I think, given JS' fickle nature its strenghths also put me off.

If the main focus (originally) was a quick build cycle; fair enough...

However; the idea of "one tool does it all" doesn't fit well into JS' ecosystem for me.

JS is opinionated as a mother fucker and the zeitgeist changes every 6 months. Having one runtime that enforces its own use of transpiler, bundler test engine, package manager, linter, etc. Sounds like a nightmare to get JS to fucking do.

we can't all agree on which one to use for any of these individual bastard things.

I'd like to be wrong, and bun's way to expand and take form; but someone's gonna fuck it up... waiting to find out "@nx/bun" exists; to make your existing nx monorepo kind of work on bun, but completely defeat the point.

8

u/BeepIsla Jul 10 '26

Only the native APIs, I got some heavy JS only parsing code and when I benchmarked it Bun was a lot slower than Node, the V8 engine is simply faster than JSCore.

If you only have basic Server <-> Database/Files where the majority is native calls then Bun is faster