Live data from Hacker News

Rewrite Bun in Rust has been merged

github.com

121–130 of 822 posts

Re: Rewrite Bun in Rust has been merged

#121

Love seeing the tests themselves getting modified, with random `sleep(1)` thrown around in a few of them. This bodes well, I pray some idiot at some large AI co actually ends up using this garbage in prod

Claude Code uses Bun as its runtime.

If this has been merged, I expect that Bun-rust is good enough to power Anthropic's internal agents to do live testing.

Re: Rewrite Bun in Rust has been merged

#123
post #37

Earlier quoted context omitted.

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 li…

It’s still 400k more lines

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).

Re: Rewrite Bun in Rust has been merged

#125
post #4

Turns out "its just an experiment, you all are overreacting" was just a lie to damp criticism. https://news.ycombinator.com/item?id=48019226

Does anything from that comment say that there was 0% chance the experiment wouldn't be merged into main? I see " very high chance all this code gets thrown out completely", which just means the low chance of it not being thrown out has occurred.

It doesn't say what will happen, but isn't their comment responding to people who don't like the look of this rewrite, and telling them basically that they don't have to think/worry about it? I definitely read it as 'not yet' and not 'another week or so'.

Re: Rewrite Bun in Rust has been merged

#127
post #71

HN overreacting again. I trust Jarred to make the right decisions regarding bun, which seems to be his passion. Bun has always been amazing since i first tried it, it had some bugs along the way, which didn’t last long. Anything bad that comes from this, will simply be fixed. I hope more software does this and gets rid of their segmentation fault producing code, written in c++ and other unsafe languages I can think o…

It has 10k unsafe blocks, pretty sure those segfaults are still gonna be there

Re: Rewrite Bun in Rust has been merged

#128
post #124

Say what you want, but for people building products on Bun, this is bad news for the foreseeable future.

This is bad for anyone building on Zig.

Why would it be? There is projects like Roc that did the opposite, they went from rust to zig, as they (had to) use lots of unsafe rust. And before you ask, no it was not an AI generated rewrite.

Re: Rewrite Bun in Rust has been merged

#129
post #4

Turns out "its just an experiment, you all are overreacting" was just a lie to damp criticism. https://news.ycombinator.com/item?id=48019226

Well I've got egg on my face. I am in that post, defending bun. I thought for sure the peanut gallery was overreacting. Especially when the concern was absurd - because who would do such an insance thing? Like, at the time I legitimately thought 'no way a project switches over in a few months'. Even as an absurd hypothetical, I couldn't even imagine the prospect of it being done in a matter of days. Feeling really co…

that’s the advertisement part of this ordeal you’re experiencing.
Post reply on HN