Live data from Hacker News

How is the Bun rewrite in Rust going?

lockwood.dev

351–360 of 412 posts

Re: How is the Bun rewrite in Rust going?

#351
post #182
post #175

Earlier quoted context omitted.

Any comment on the costs estimated in the article? especially the buildkite costs?

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…

So are the "$800k + CI" estimates accurate? And your team works weekends just to make tests faster?

Re: How is the Bun rewrite in Rust going?

#352
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…

I noticed, I started getting memory leaks suddenly and it restarted the process in long sessions because of limitation of environment limit.

Re: How is the Bun rewrite in Rust going?

#353
post #336

Earlier quoted context omitted.

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.

Does it work with macOS ?

Re: How is the Bun rewrite in Rust going?

#354
post #353

Earlier quoted context omitted.

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.

Does it work with macOS ?

weird question, i don't see why not. osx has a fantastic virtualization story.

https://developer.apple.com/documentation/virtualization/run...

Re: How is the Bun rewrite in Rust going?

#355
post #329

Earlier quoted context omitted.

That makes sense to me as a tactic to prevent that problem. But the article talks about how so much code was written so fast. Seems to me that to create that much code that fast you have to have AI produce both the code and the tests. So I am not sure in this project if the AI can edit the tests or not. I assume that because this is Anthropic the AI is doing as much as possible, which would include editing tests.

Bun had an enormous existing test suite written in TypeScript. Getting those tests to pass against the Rust version was the key thing that enabled the project. You can go and check if the AI edited the tests yourself: look at the git history of those files in the public Bun repository.

But Bun also implements the interpreter to those tests— doesn't that mean it has a lot of leeway to over-fit to them? It's not as clean as "don't change these files" in this case.

In general I would agree though, and would take it one step further: the agent writing the source code should not even be able to see the tests, nor the agent writing the tests see the source code.

Re: How is the Bun rewrite in Rust going?

#356
post #322

Earlier quoted context omitted.

I’ve come to just expect that my CC instance will randomly “blank” and that I have to resize my terminal / use page up/page down to get it to show again. Supposedly they used a game engine to render their TUI but I’ve never had an FPS game do that.

They drive the TUI from the same thread that actual does stuff.. causing frequent freezes. No GUI developer would ever put this on the same thread.

Just ask Claude to fix it, what’s the problem??????? /s

Re: How is the Bun rewrite in Rust going?

#357
post #231

Earlier quoted context omitted.

Please feel free to write an article that corrects my mistakes.

I try not to publish articles that call out mistakes by other people just for the sake of it. I've written a fair amount about the Bun rewrite already - https://simonwillison.net/search/?q=bun%20rust

You've got my blessing. I think given how mistaken I am, it should be quite an engaging article.

Re: How is the Bun rewrite in Rust going?

#358

Earlier quoted context omitted.

>A language machine translating is just... doing what a language machine does? Really? We had language machines for decades that couldn't do it. One that could was only built in the last 2 years max but that's something you expect from language machines? Lol Okay

If a machine made to do language things in this day and age having trillions of dollars invested in doing language, I am not shocked at all that a trillion dollar language machine translates programming languages. It really is not surprising to me. I'd be surprised if a trillion dollar language machine doesn't do as fundamental a linguistic capability as translation. It's like being shocked that a language machine sp…

There is no trillion dollar language machine and pouring lots of money into something doesn't mean anything.

Re: How is the Bun rewrite in Rust going?

#359
post #86

Maybe it would have made more sense for Anthropic to rewrite Claude Code in rust, and cut out the middle man (bun)?

Nope, they want shared artifact(s) between web and desktop (not sure what do they have in mobile apps) clients (Chat/Cowork/Code/CC-cli), so TS is the way to go. It’s a reasonable choice made by engineers.

The agent loop doesn’t run in the browser.

Re: How is the Bun rewrite in Rust going?

#360

Earlier quoted context omitted.

It was a commercial slogan for a toilet cleaning agent. An English equivalent would be "mr clean recommends you use mr clean". Today, it is used to point out when someone tells you they themselves delivered good work. Anytime you'd use the meme of Obama giving himself a medal, you could use this phrase.

The Toilet Duck brand exists in English. Canard-WC in French, even.

Actually the existence of the French name is confusing for English speakers as although many would know enough school French to get "canard" == "duck" if prompted, in English this word ends up meaning some sort of fabrication or hoax, apparently from an old French joke where somehow that punchline of that joke was popularized in England so long ago we don't have records. Human culture is weird.

So the first thing an English native might get from "Canard WC" is probably hoax toilet, I expect the duck imagery of the product would bring the "canard" == "duck" meaning across though.

Post reply on HN