Live data from Hacker News

Rewrite Bun in Rust has been merged

github.com

291–300 of 822 posts

Re: Rewrite Bun in Rust has been merged

#291
This may be the largest AI-generated codebase right now, by a lot. It'll be interesting to see how this plays out.

Frontier AI software development still falls short in the design/architecture department, in my recent experience. Though it's pretty impressive at making "working" code.

This being a fairly direct conversion from one language to another, even keeping the same interfaces across files, means the architecture is already in place.

The detailed test coverage is also very helpful for Claude. But even detailed testing can't cover every edge case.

So my questions are: How well did Claude do on the edge cases? And how maintainable will this codebase be going forward?

Re: Rewrite Bun in Rust has been merged

#292
post #289
post #249

$ rg 'unsafe [{]' src/ | wc -l 10428 $ rg 'unsafe [{]' src/ -l | wc -l 736 Language Files Lines Code Comments Blanks ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Rust 1443 929213 732281 116293 80639 Zig 1298 711112 574563 59118 77431 TypeScript 2604 654684 510464 82254 61966 JavaScript 4370 364928 293211 36108 35609 C 111 305123 205875 79077 20171 C++ 586 262475 217111 19004 26360 C Header 779 100979…

The half of the files contain 'unsafe' keyword? It doesn't seem as a good rewrite. What is the point of rewrite into Rust, if ~half of your code is still unsafe?

Some correct me if I'm wrong, but it's unlikely they wrote this first initial version of Rust and will leave it unchanged as-is. What's there now is a step in a long process, not the final destination.

Re: Rewrite Bun in Rust has been merged

#293
post #289
post #249

$ rg 'unsafe [{]' src/ | wc -l 10428 $ rg 'unsafe [{]' src/ -l | wc -l 736 Language Files Lines Code Comments Blanks ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Rust 1443 929213 732281 116293 80639 Zig 1298 711112 574563 59118 77431 TypeScript 2604 654684 510464 82254 61966 JavaScript 4370 364928 293211 36108 35609 C 111 305123 205875 79077 20171 C++ 586 262475 217111 19004 26360 C Header 779 100979…

The half of the files contain 'unsafe' keyword? It doesn't seem as a good rewrite. What is the point of rewrite into Rust, if ~half of your code is still unsafe?

Rust has a ton of other features besides safe. Like exhaustive checking of enum variants and the ability to avoid using null with option and result.

Re: Rewrite Bun in Rust has been merged

#294

Wow. This is going to be interesting to follow. There's absolutely no way any of this code was reviewed, but maybe we're in a post-human world now where you can trust the models to write and review the code. This is like Gastown but on a higher profile project. Will be fascinating to see how this project is able to add new features going forward (or even _if_ it will be able to). Does anyone know how exactly Bun is u…

> you can trust the models to write and review the code

You definitely cannot!

Re: Rewrite Bun in Rust has been merged

#295
post #137

Earlier quoted context omitted.

no matter how good the results are, this kind of rewrites deserves an experimental build to be battle tested by bleeding edge users. It takes a lot of rigorous testing automated and manual and by community before such changes are cosnidered permanent. One does not simply YOLO a full langugae rewrite without user feedback. it is insane.

You should really read TFA because... that's exactly what they're doing? The Zig version has not been removed and this only exists got canary builds. No rust binaries are being distributed as stable.

But the official canary/bleeding edge/nightly/whatever version is now the LLM rewrite, yes?

Re: Rewrite Bun in Rust has been merged

#296

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

Bun is now the example. It's >1million lines of code, entirely vibe coded. All we do now is wait and see what happens.

Re: Rewrite Bun in Rust has been merged

#297
post #277

If this means that segfaults become rarer with Bun I might consider using it in production again. As it stands, Bun has been great as an all-in-one TS/JS package manager, build system and test runner but unstable enough that I still want Node running in production backends.

Yes. That is the plan.

See jared comment [0]

If this helps bun and rust is a better lang for developing bun going forward with the help of claude. Then i think that is just fine.

I thought rust was making the codebase complex so zig won on speed and dx.

But with llm and a large codebase it seems like rust gives fewer bug and you can develop it faster & safer.

https://news.ycombinator.com/reply?id=48133519&goto=threads%...

Re: Rewrite Bun in Rust has been merged

#298
post #294

Wow. This is going to be interesting to follow. There's absolutely no way any of this code was reviewed, but maybe we're in a post-human world now where you can trust the models to write and review the code. This is like Gastown but on a higher profile project. Will be fascinating to see how this project is able to add new features going forward (or even _if_ it will be able to). Does anyone know how exactly Bun is u…

> you can trust the models to write and review the code You definitely cannot!

Reminds me of going on linkedin and seeing all these sales and product people who are talking big game about engineering now. Well yeah they are definitely producing something but not sure I'd call it "engineering."

Re: Rewrite Bun in Rust has been merged

#299
post #258

Earlier quoted context omitted.

I think Jarred's response at the time was intended to cool the ridiculous hype when the branch first appeared!

[flagged]

I don't know if the intent was to deceive, but the comments certainly had the effect of deceiving me. I came away from that first thread thinking, "Ah, so the 'story' here is that someone on the project tried an experiment on a branch that they probably should have put in a branch on their personal fork." I was no longer thinking it was a serious possibility that an AI rewrite would get merged.

Re: Rewrite Bun in Rust has been merged

#300

About 9 days ago, Jarred wrote that it was far from certain that this would merge and that it was an overreaction. Ironic.

[flagged]

Edit: my mistake. Sorry for misreading.

You've crossed into personal attack with this, and that's not allowed here. Please don't.

https://news.ycombinator.com/newsguidelines.html

Post reply on HN