this post was submitted on 02 Dec 2025
266 points (98.5% liked)

Programming

23690 readers
260 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Biggest WTF news I've read today. I'm not a web dev so this doesn't affect me, but this is bizarre.

We get a closer first look at what's around the corner for AI coding tools, and make Bun better for it

This incredibly popular tool is now going to merge with an AI company and shift gears to be turned into some forced AI hype machine. Yipee! Exactly what all the devs were hoping for! /s

top 50 comments
sorted by: hot top controversial new old
[–] Buddahriffic@lemmy.world 9 points 1 day ago (1 children)

For anyone wondering wtf Bun is, it's a project championing JavaScript. It wants to replace node.js.

On a tangent, I recently switched from a cinnamon desktop (which uses TypeScript or some form of js) to KDE-plasma because I noticed that cinnamon occasionally couldn't keep up with rapid mouse movements (and my machine is high end). KDE-plasma handles it fine and even has a "find my mouse" feature that turns doing the "draw fast circles to see if the mouse drifts all over the screen because the handler can't keep up with the updates" into a game of "how big can I make the cursor".

I wish the whole "let's keep javascript as a thing" movement would just die out. Other languages aren't hard to learn, why are so many people obsessed with sticking with js and shoehorning fixes for its massive flaws instead of just letting it die?

[–] myotheraccount@lemmy.world 5 points 1 day ago (1 children)

Not saying it should be used for everything, but it is a pretty decent language nowadays (lots of the annoying parts have been fixed in the last 15yrs). Although the main benefit imho is, that it is the closest thing we have to an interpreted language that runs everywhere.

[–] Buddahriffic@lemmy.world 5 points 1 day ago (1 children)

Isn't Python also widely supported these days?

Though I'll always prefer compiled languages over interpreted and I think cross compiling is also in the best state it ever has been, though dependencies can complicate things still, as well as any inline assembly use.

[–] myotheraccount@lemmy.world 4 points 1 day ago

Supported as in "you can install an interpreter on most machines": yes

But for JS it's already there. You can just write a program, upload it someone, send someone a link and it runs. And it's even sandboxed.

(Although thanks to webassembly, that will be true for many more languages as well, so maybe my argument is void)

[–] termaxima@slrpnk.net 9 points 1 day ago (1 children)

Evil spreads its tendrils further yet.

[–] boonhet@sopuli.xyz 9 points 1 day ago* (last edited 1 day ago)

Yup, even AI companies are being infected by the evil of Javascript!

[–] ptz@dubvee.org 125 points 2 days ago (1 children)

Oh goddamn it. I just started doing projects in Bun and moving some of my older projects to it.

Fuck fuck fuck fuckity fuck fuck.

[–] vala@lemmy.dbzer0.com 18 points 1 day ago (2 children)
[–] rirus@feddit.org 1 points 1 day ago
[–] ptz@dubvee.org 5 points 1 day ago (1 children)

Yeah. I'm going to keep using it for now but definitely going back and un-reimplementing some things that I moved into the Bun API. Basically just gonna use it as a runtime in place of NodeJS.

I just really liked being able to build and distribute a single binary executable :(

[–] vala@lemmy.dbzer0.com 5 points 1 day ago (2 children)

I would say it should be forked but no one knows Zig haha.

load more comments (2 replies)
[–] ilinamorato@lemmy.world 82 points 2 days ago

Looks like it's MIT-licensed, so it's probably time to make a non-Anthropic fork.

[–] Sunsofold@lemmings.world 17 points 1 day ago

Uhoh, now the anaconda is going to want some.

[–] spartanatreyu@programming.dev 26 points 1 day ago (4 children)

Serious question for anyone who actually uses Bun:

Why are you using Bun instead of Deno or Node?

If you would have asked me 10 years ago, what were the biggest problems with JS as a whole, I would have stated:

  1. Poor type safety

  2. No standard library which leads people into dependency hell

  3. Poor security (installing a project should not even allow the possibility of key stealing or ransomware)

  4. No runtime ergonomic immutable data structures with fast equality checks (looked like it was going to be resolved with the Records and Tuples proposal, but it was withdrawn and discussions are continuing in the composites proposal)


Today I consider point 1 mostly resolved and point 4 a problem for TC39 and engine implementers, and not resolvable by runtimes themselves.

That leaves us with problems 2 and 3.

I see Node having poor solutions for 2 and 3.

I see Bun having poor solutions for 2 and 3.

I see Deno having great solutions for 2 and 3.


As far as I can tell, people have chosen Bun for either hype or speed reasons.

Hype doesn't seem like an important reason to choose Bun since it's always fleeting and there's enough investment in the industry to keep each runtime going for a long time.

I do see speed being a moderate issue with JS, but that's mainly due to:

  • dependency install times which should be a one time cost, and which can be reduced anyway by using a standard library

  • slow framework slop, which isn't really a runtime issue.

So I'm not sure speed fits as a reason for choosing Bun.

I'm not sure what the other reasons are, but I'm genuinely curious.

If you're using Bun in projects today, why have you chosen bun?

[–] Xylight@feddit.online 1 points 14 hours ago

Speed, and the package manager and node backwards compatibility is great

[–] jsalvador@programming.dev 2 points 1 day ago

I don't know many people who choose Bun instead of Node or Deno, but all of them do it because speed.

IMHO, I like Deno because it's offering solutions for everything and trying to not fall into same issues Node had (same creator, trying to apologize), but eventually I run into Node because TypeScript and easy-to-use (in my experience). Anyway, Bun always has been to me like the third wheel of the bike.

[–] s4if@lemmy.world 7 points 1 day ago (1 children)

Simply for convenience and speed. Nothing more.

[–] FizzyOrange@programming.dev 4 points 1 day ago

Is Deno not convenient and fast? I am also interested in knowing why I would want to use Bun over Deno.

[–] Evotech@lemmy.world 3 points 1 day ago* (last edited 1 day ago) (1 children)

Bun was purely built to make building faster and the apps to be portable

[–] spartanatreyu@programming.dev 2 points 21 hours ago

Pretty sure Deno had that first though.

Deno launched with an all-tools-in-one approach and then you could use deno bundle to compile everything into a single binary that you could run on another machine.

Then they briefly broke deno bundle in their 2.0 release when they added node/npm compatibility then brought it back in 2.4.

[–] paequ2@lemmy.today 48 points 2 days ago (1 children)

I started using Claude Code myself. I got kind of obsessed with it.

Over the last several months, the GitHub username with the most merged PRs in Bun's repo is now a Claude Code bot. We have it set up in our internal Discord and we mostly use it to help fix bugs. It opens PRs with tests that fail in the earlier system-installed version of Bun before the fix and pass in the fixed debug build of Bun. It responds to review comments. It does the whole thing.

Seems like they've bought into the hype.

[–] justOnePersistentKbinPlease@fedia.io 53 points 2 days ago (1 children)

Not overly surprising.

Google and Salesforce have been "developing" new features and products this way for at least the last 13 years?

  1. Find promising small business/startup
  2. Buy it with your war chest money
  3. Force them to integrate with your systems and live inside your walled garden.
[–] somerandomperson@lemmy.dbzer0.com 15 points 1 day ago (5 children)

I'm not a business expert, so i want to ask:
Can you "reject" being bought?

[–] atomicbocks@sh.itjust.works 26 points 1 day ago (2 children)

Amazon.com acquired parent Quidsi, Inc. for $545 million on November 8, 2010. Prior to Amazon's purchase, Amazon sold diapers at steep losses in order to undercut Diapers.com and drive down the purchase price of the company.

No. Not if they really want to buy you.

Source

[–] Tollana1234567@lemmy.today 1 points 13 hours ago

the walmart tactic, they learned from the og AMAZON, aka WM.

The whole Amazon diapers is insane.
The burgeoning monopoly was being noticed as early as 2011. I know this because it is why the CEO of one chain here planned out and started offering grocery deliveries.

[–] null_dot@lemmy.dbzer0.com 5 points 1 day ago

Yes but... not really.

If you're amazingly talented and spend 10 years of your life building something amazing but have no money, when someone offers you millions you're just gonna take it.

[–] Croquette@sh.itjust.works 3 points 1 day ago

I mean, technically yes.

But mega corpos have so much money to throw at you that at one point, it's hard to say no and very few people can refuse.

It is generational wealth that is being offered to the shareholders. I know I would fold.

[–] mrgoosmoos@lemmy.ca 17 points 1 day ago (1 children)

yes, so long as you don't them putting pressure on your suppliers and helping your competitors, I guess

[–] nilloc@discuss.tchncs.de 14 points 1 day ago

Or just building a straight close of your idea and crushing you. Happened to my startup.

load more comments (1 replies)
[–] Zikeji@programming.dev 30 points 2 days ago (1 children)

:(

Time to switch to yarn or something.

[–] bjorney@lemmy.ca 27 points 2 days ago (1 children)
[–] Zikeji@programming.dev 10 points 2 days ago (1 children)

Sure, which makes the transition suck even lol.

[–] naught@sh.itjust.works 11 points 2 days ago (3 children)
load more comments (3 replies)
[–] SlartyBartFast@sh.itjust.works 21 points 2 days ago

How misanthropic

[–] tonytins@pawb.social 20 points 2 days ago

Welp. Guess I'm switching to Deno.

[–] Taevas@beehaw.org 11 points 1 day ago* (last edited 1 day ago) (4 children)

Man, Bun's great, I've been using it since 1.0.0 essentially so that REALLY sucks

Like some of the other people commentating on this thread, I'll look into using something else, but it's really sad and frustrating that I need to switch things over and over again

load more comments (4 replies)
[–] rozodru@pie.andmc.ca 16 points 1 day ago

yeah as a dev myself I saw this coming a few months back and stopped using Bun so this doesn't surprise me. They got on the cursor hype train awhile back and that was enough for me.

[–] cornshark@lemmy.world 12 points 1 day ago (3 children)

What's bun? Some other comments mention a js runtime so is it like a V8 competitor?

[–] chicken@lemmy.dbzer0.com 17 points 1 day ago

A bundler, a transpiler, a runtime (designed to be a drop-in replacement for Node.js), test runner, and a package manager - all in one.

Bun's single-file executables turned out to be perfect for distributing CLI tools. You can compile any JavaScript project into a self-contained binary—runs anywhere, even if the user doesn't have Bun or Node installed. Works with native addons. Fast startup. Easy to distribute.

[–] irelephant@lemmy.dbzer0.com 12 points 1 day ago* (last edited 1 day ago)

It's more of a node.js competitor, but it doesn't use v8, it uses safaris js engine. https://bun.com/blog/how-bun-supports-v8-apis-without-using-v8-part-1

load more comments (1 replies)
[–] fubarx@lemmy.world 13 points 1 day ago (2 children)

It's not a bad outcome. Bun is cool but has $0 revenue and some hand-wavy thing about future paid cloud services. This way, larger companies will give them a more serious shot than they would a small startup.

It still doesn't have a revenue story, but it's now strapped onto the side of one of the few AI companies with a decent chance of surviving the next AI Winter. And if Anthropic goes sideways, the Bun engineers can fork the code and keep going.

[–] planish@sh.itjust.works 1 points 1 day ago (1 children)

Why does Anthropic think they need a JS runtime though? Are they just like "well Microsoft has a command line tool for installing JS packages so we need one too"???

[–] fubarx@lemmy.world 1 points 1 day ago

On the AI coding IDE side, VSCode has pretty much hoovered up everyone, mainly because JetBrains offered their own AI option, which kept competitors away. On the server side, though, integrating with AI is still wide open.

You eventually have to hit Python because of all the ML libraries. But you can run that as a separate microservice or process. Here's a chance to do something whacky, like let JS invoke Python-ML inline, or port the main ML libraries to JS, or cross-compile JS to CUDA (just spit-balling here). It'll be a lot easier to try these experiments than trying to push it upstream into Node.

Plus, Bun is used by a bunch of cross-platform CLI tools, including Claude Code, so they can make sure there are no breaking changes.

TBH, I'm surprised nobody's snapped up Mojo (and Chris Lattner). They have a lot more advanced, AI-relevant, cross-platform tech.

load more comments (1 replies)
[–] e8d79@discuss.tchncs.de 10 points 2 days ago* (last edited 2 days ago)

People who are surprised by VC funded software going to shit...

Funniest thing I I've seen in ages.

Seriously, this always happens. At some point the investors want a huge payout and they will get it by exploiting existing users or they just shutdown the whole company and strip it for parts.

[–] vala@lemmy.dbzer0.com 6 points 1 day ago

That sucks. I was really liking bun.

load more comments
view more: next ›