Live data from Hacker News

How is the Bun rewrite in Rust going?

lockwood.dev

331–340 of 412 posts

Re: How is the Bun rewrite in Rust going?

#331

Many repeat the point of “$165k is cheaper than team of multiple engineers working on the rewrite for a year”, which I think is flawed — the team of engineers would have produced idiomatic rust, and it would take probably 100k+ of tokens more to make the bun in rust idiomatic rust.

> the team of engineers would have produced idiomatic rust

Not necessarily. Didn’t Microsoft port the TS compiler to Go and they did it by translating the TS? It wasn’t idiomatic Go.

Re: How is the Bun rewrite in Rust going?

#333

Earlier quoted context omitted.

Why wouldn't they? Bun is a major part of the web ecosystem, having it developed by them via AI, sounds like a gigantic pr win.

> Bun is a major part of the web ecosystem It was never that large but it did have a shot at getting more popular - until this drama. No one worth their salt is building on Bun anymore, the creators and maintainers of bun have demonstrated their complete lack of care around engineering and support. It’s just too risky.

I regularly use bun, it's a decisive speed improvement over node. Large parts of the ecosystem build on bun.

If you install bun you're still getting the zig version.

I don't see major reasons to doubt the rust rework, especially as so much capital and token investment is being thrown at it.

As long as it fits better than alternatives, I see no major reasons to change.

Re: How is the Bun rewrite in Rust going?

#334
post #148

Bun’s Rust rewrite shipped in Claude Code over a month ago and barely anyone noticed. Claude Code is widely used. The Rust rewrite is going well overall. In the Bun v1.4 video, I promised a certain number of newly passing Node.js tests were added to force us to improve compatibility, and that number is not true yet. The release is delayed until it is true. The PRs to make it true are up but not merged yet. Most likel…

If actually anyone noticed, then it is a pretty bad move. Also “going well overall “ does not answer the author’s observations either.

Re: How is the Bun rewrite in Rust going?

#335
post #312
post #148

Bun’s Rust rewrite shipped in Claude Code over a month ago and barely anyone noticed. Claude Code is widely used. The Rust rewrite is going well overall. In the Bun v1.4 video, I promised a certain number of newly passing Node.js tests were added to force us to improve compatibility, and that number is not true yet. The release is delayed until it is true. The PRs to make it true are up but not merged yet. Most likel…

That's not surprising. Claude code is buggy enough, and releases break things often enough, that I wouldn't expect users to distinguish bugs introduced by switching to rust-based-bun from the normal garden variety bugs.

I can count the number of times an @ file reference doesn't autocomplete on a hundred hands. Or how a rewind won't reset the "is this file Read" marker. Or how a Branch (forking a convo) takes literally 5+secs to run. Or how a slashcommand that's user-only will not work if its in the middle of a prompt. Or how ctrl-r search will match results that don't include any search terms. Or how you can't resume a branch given its session id.

Yes Boris, tell me more about how "coding is solved".

Edit: literally just now, while writing a claude code hook, opus5 gave me this LOC because apparently the changelog and what's in the transcripts _differs_; great docs d00ds.

    # Present only for a subagent's calls. Both spellings accepted: the changelog
    # names `agent_id`, transcripts use `agentId`, and we need not care which lands.
    agent=$(printf '%s' "$input" | jq -r '.agent_id // .agentId // empty')

Re: How is the Bun rewrite in Rust going?

#336
post #182

Earlier quoted context omitted.

CI has always been expensive for Bun including before the acquisition. We build for [macOS, Linux, FreeBSD, Android, Windows] x [ARM64, x64] and then run tests on multiple Linux distros with multiple shards, multiple macOS versions and Windows for each architecture. We recently started cross-compiling all the builds on Linux arm64 and that made it a little faster (I wrote a CLI tool to download the correct macOS head…

How come Bun uses Buildkite instead of self-hosting the CI infra?

It spawns ephemeral EC2/Azure instances, which is a lot cheaper than the GitHub actions runners we used before that.

We shard to a lot of machines for tests and I’d be worried about running out if we used dedicated servers.

BuildKite is fine but I wouldn’t be that surprised if we move off of BuildKite to a custom thing at some point. Months ago, we switched from CMake to a handrolled typescript build system and it made our builds faster and simpler.

Re: How is the Bun rewrite in Rust going?

#337
post #312
post #148

Bun’s Rust rewrite shipped in Claude Code over a month ago and barely anyone noticed. Claude Code is widely used. The Rust rewrite is going well overall. In the Bun v1.4 video, I promised a certain number of newly passing Node.js tests were added to force us to improve compatibility, and that number is not true yet. The release is delayed until it is true. The PRs to make it true are up but not merged yet. Most likel…

That's not surprising. Claude code is buggy enough, and releases break things often enough, that I wouldn't expect users to distinguish bugs introduced by switching to rust-based-bun from the normal garden variety bugs.

Claude Code is quite buggy but doesn't generally crash, which is what you would expect if it shipped an immature backend for a month. Maybe the rewrite is full of bugs and they happened to result in the UI glitches or trashed settings files or whatever other application-level bugs that Claude Code has routinely rather than crashes but that would be pretty surprising.

Re: How is the Bun rewrite in Rust going?

#338

Earlier quoted context omitted.

In Dutch there's a saying, "wij van wc eend adviseren wc eend", and it fits perfectly.

I don't see how it does. Claude Code is an extremely widely used product; the preceding comment offered an objective evaluation target, not a "trust me it's good" argument.

I don't see how Claude code being a widely used product is relevant to the person who orchestrated the Rust rewrite of bun saying that the orchestration of the Rust rewrite of bun went well. Wc eend is a widely used product as well, if that helps.

Ah, for context, which I suspect you may be unaware of, Jarred (the person who said the rewrite to rust went well) is the creator of bun, and the guy behind the rewrite.

Re: How is the Bun rewrite in Rust going?

#339
post #336

Earlier quoted context omitted.

How come Bun uses Buildkite instead of self-hosting the CI infra?

It spawns ephemeral EC2/Azure instances, which is a lot cheaper than the GitHub actions runners we used before that. We shard to a lot of machines for tests and I’d be worried about running out if we used dedicated servers. BuildKite is fine but I wouldn’t be that surprised if we move off of BuildKite to a custom thing at some point. Months ago, we switched from CMake to a handrolled typescript build system and it ma…

Thanks for answering!

I suppose my second question would be how much Bun spends on CI per month atm - I'd imagine that robobun would have ramped up the bill a fair bit

Re: How is the Bun rewrite in Rust going?

#340
post #336

Earlier quoted context omitted.

How come Bun uses Buildkite instead of self-hosting the CI infra?

It spawns ephemeral EC2/Azure instances, which is a lot cheaper than the GitHub actions runners we used before that. We shard to a lot of machines for tests and I’d be worried about running out if we used dedicated servers. BuildKite is fine but I wouldn’t be that surprised if we move off of BuildKite to a custom thing at some point. Months ago, we switched from CMake to a handrolled typescript build system and it ma…

you don't need buildkite or blacksmith anymore.

codex trivially built me a self-hosted gh actions runner workflow for ephemeral vm's (just a big bash script that manages the vms with qemu). i even sped up the builds with my own custom base image with everything installed in it that i need too.

it works flawlessly.

fanning that out to starting and stopping instances wouldn't be too much of a stretch.

Post reply on HN