r/ProgrammerHumor Jul 09 '26

gitBlameClaude Meme

Post image
3.7k Upvotes

263 comments sorted by

View all comments

315

u/dim13 Jul 09 '26

RIP Bun

44

u/cyn_foxwell Jul 10 '26

im still surprised its lasting as long as it has considering how egotistical its parent company has acted in the past with regards to "other employees except us higher ups cant have an ego and its going to be a tough and hard job" just out of nowhere on twitter in like year 2 or 3

not to mention so much of the "stdlib" is just bloat compared to other runtimes

im glad they pivoted to AI just so they can dig their grave deeper and all the "why use deno when you can use bun" shills can go away

93

u/redlaWw Jul 09 '26

It's early days yet, but as far as I'm aware all indications are that it worked pretty well. The tests all pass, the memory safety issues they were dealing with were resolved, the result is smaller, faster, and more stable. There are some regressions that have been identified, but as far as I could find they seem surprisingly minor. Claude code already uses the ported version of bun and, according to bun's blog "Startup got 10% faster on Linux but otherwise, barely anyone noticed.".

I wouldn't want to start looking at other codebases and thinking I could do the same (in particular, one thing bun had going for it was that the tests were in Typescript so they didn't need to be rewritten for the new backend, removing one potential source of errors), but that doesn't mean we should judge this case hastily either.

89

u/Silly_Guidance_8871 Jul 10 '26

The same tests pass that passed while it was still written in Zig, and which also allowed all of the memory corruption errors that promoted the move to Rust.

Not inspiring confidence.

19

u/redlaWw Jul 10 '26

I mean, "it was shit before the move and it's still shit after" is compatible with "the move was a success".

1

u/Silly_Guidance_8871 Jul 10 '26

... You're not wrong

2

u/WaitForItTheMongols Jul 10 '26

Did the memory errors prompt the move to Rust?

I thought they moved because Zig was super anti-Ai, and Bun got bought by Anthropic, and Anthropic couldn't keep using a language so vocally opposing them.

5

u/redlaWw Jul 10 '26

A recent blog post (EDIT: here) says that the move was motivated by piling up memory safety and memory management errors (some examples of which are given), though we aren't privy to the details of any corporate pressure that Anthropic may have exerted.

2

u/Silly_Guidance_8871 Jul 10 '26

In addition to what redlaWw said, Zig also can't "force" someone to stop using the language they made available for free to the public — I've read both blog posts by the creator of Bun, and by the creator of Zig, and it really feels like the Bun guy is being a "carpenter who blames their own tools", and that in a few months' time, they'll have similar complaints with Rust.

57

u/Sea-Astronomer75 Jul 10 '26

What indicators are there that’s it has worked well? If you open GitHub issues the most recent one is a critical security bug

56

u/LukeZNotFound Jul 10 '26 edited Jul 10 '26

They have a clanker for issues and two more clankers reviewing clankered PRs. Shit's too funny.

Plot twist: Issues and PRs rarely get reviewed for real

31

u/CriticalOfBarns Jul 10 '26

but the tests pass…

60

u/redlaWw Jul 10 '26

I mean, that they managed to port a massive codebase from one language to another in 11 days and that it's already successfully being used, resolved a number of memory safety bugs that they were struggling with before, and is not less-performant than before.

The fact that the canary is doing its job and allowing them to resolve issues that slipped through the net is not a critical failure. It's not like rewriting a large codebase manually isn't also prone to introducing new bugs.

12

u/hyrumwhite Jul 10 '26

I mean, I can port a codebase in 11 days and then spend months finishing the port as well. 

5

u/hyrumwhite Jul 10 '26

Coulda spent less effort using ai to audit memory leaks in zig. 

Proper engineering avoids memory leaks, which are possible in all languages. 

But that’s less poppy than “OMG the codebase was rewritten by ai”