Top
Best
New

Posted by Chaoses 4 hours ago

Rewrite Bun in Rust has been merged(github.com)
121 points | 98 commentspage 3
PudgePacket 4 hours ago|
+1,009,257 -4,024

wild

andrepd 2 hours ago|
Least unstable js project
lucasloisp 2 hours ago||
The follow-up PR removing the zig source files being auto-tagged by bun's own CI as "ai slop" is so funny

https://github.com/oven-sh/bun/pull/30680

Jarred 1 hour ago|
That was me - not CI marking as slop. It kept around 60 .zig files around that should’ve been moved to .rs files.
wateralien 2 hours ago||
Deno's approach from the beginning seems to have proven out.
sutib 2 hours ago||
"And Icarus laughed as he fell, for he knew to fall means to once have soared"
classicposter 2 hours ago||
It's interesting that the developer who spearheaded the hype of Zig abandoned the engineering without addressing the segfault. They could have also taken the approach of gradually porting from Zig to Rust via FFI. Yes, this is a slop show by the AI lab.
minikomi 2 hours ago||
Now translate it into zig!
aiscoming 2 hours ago||
vibe coders keep saying that now you can have 100x productivity, that you can write a million lines of code in a week and do what would take a team of 10 experienced developers a year.

where are all these million lines vibe coded projects? I don't see them. its all hype

andai 2 hours ago||
This PR appears to be over a million lines (though GitHub won't load for me).

Of course the quality is the real question. I haven't had amazing results with LLMs with Rust, but they're less bad at it than they are at Zig, which is probably the reason for the rewrite.

At least in this case the original code was written carefully by hand, so the design is sane, and now just the auto-translation is in question. Now it just needs to be battle tested.

pixel_popping 2 hours ago||
Bun is now literally vibe-coded, that's your proof. And Bun developers will solely use LLMs at some point (pretty close to "vibe coding").
q3k 2 hours ago||
Show me some gold instead of a continuous stream of pickaxes.
jwpapi 2 hours ago|
This will go down in history as the biggest mistake of software engineering of all time.

Bun is the runtime of Claude Code, which is the core product of a trillion dollar company, which now sits on a vibe-coded app, where not a single person in the world has a proper mental model of.

ageitgey 2 hours ago||
I don't know, there's been some pretty bad software mistakes, possibly bigger than a PR to convert an app to Rust:

https://en.wikipedia.org/wiki/Therac-25

auguzanellato 1 hour ago||
I hope no one ever builds (or even worse, vibe codes) a radiation treatment machine.
nicce 2 hours ago|||
Maybe this is the best marketing trick for Claude Code ever. Maybe there was pressure from Anthropic to do this and prove the value. Even partial success is enough to prove the value, justify the value and usage, and AI dependency even further.
tarruda 2 hours ago|||
And as long as Bun doesn't break Claude code, which only uses a subset of it's APIs, this might just pay out.
ares623 2 hours ago|||
It only needs to survive long enough for the IPO
applfanboysbgon 2 hours ago|||
Claude Code itself is purely vibecoded, both CC and Bun leads are saying that humans are not writing code at Anthropic anymore. It is amazing how much money they intend to squander, because it's all funny money to them, investors just give it to them hand over fist for them to burn. Developing wrappers around the model isn't even the hard part and yet they're going to burn themselves to the ground getting high on their own supply.
NitpickLawyer 2 hours ago||
> Claude Code itself is purely vibecoded [...] money they intend to squander [...] going to burn themselves to the ground getting high on their own supply.

This really really really isn't the burn you think it is. Going from 0 to 2B+ in revenue from a "purely vibecoded" thing is what they've said they're doing, and what they've actually done. Like in already done. It's not going back, no matter how many nuh nuh people write. They've already shown this can be done.

People will continue to think that this is some sort of a gotcha. But it's actually precisely what they've done: they showed that dogfooding works. If this works, why not x y z?

applfanboysbgon 2 hours ago||
2B+ in revenue on hundreds of billions in investments and future commitments is completely worthless. Anybody can turn $100b into $2b, that's not a fucking accomplishment. And to the extent that something is driving any revenue, it is the model, not the TUI. Any success Claude is having is despite the godawful TUI, not because of it.
robryan 1 hour ago|||
They appear to be lining up a funding round at a $900 billion dollar valuation. Or to be more conservative they already raised at $380 billion. A long way from worthless.
NitpickLawyer 2 hours ago|||
claude.ai (their chatgpt equivalent) was nowhere before cc came about. CC was coded in a few weeks by people, then a few months by people + cc, then mostly cc take the wheel. It is without a doubt the main reason why they're successful. It is also the main reason why their coding models are as good as they are. They've incorporated the early data into their training recipes, and evolved model + harness together.
mapcars 2 hours ago|||
On the other hand they might be super confident in the results, and if it goes well they might use is as an example of how good claude is
pixel_popping 2 hours ago|||
Well, realistically as well, humans gave us softwares that are full of security holes (and bugs), which one have you seen that a human perfected on the first time around? Give AI some time as well to be fair.
keyle 2 hours ago|||
Won't touch it with a ten foot pole.
dheatov 2 hours ago|||
I for one am REALLY GLAD to see it consumes itself.
jwpapi 2 hours ago||
How life feels not using bun
IshKebab 2 hours ago||
My initial reaction was that this is pure insanity but in fairness this is a fairly 1:1 port of existing code, so the developer's mental model of it should still match fairly well.

For instance look at this Zig function: https://github.com/oven-sh/bun/blob/ed1a70f81708d7d137de8de0...

Versus this Rust version: https://github.com/oven-sh/bun/blob/ed1a70f81708d7d137de8de0...

I did pick that at random but it does look like the best case. I skimmed through a lot of the Rust code and there's a surprisingly small amount of `unsafe`.

Still pretty insane to merge this in such a short time with so little testing, but I can easily think of bigger software engineering mistakes. Hell it's not like Bun even needs to be commercially successful any more.

jwpapi 2 hours ago||
It’s still 400k more lines
IshKebab 14 minutes ago||
Dunno where you got that number from but it's half that. Tokei says:

  ===============================================================================
   Language            Files        Lines         Code     Comments       Blanks
  ===============================================================================
   Zig                  1298       711112       577946        57772        75394
   Rust                 1443       931232       737485       114373        79374
So it's 28% more lines of code (not comments/blanks).
More comments...