Live data from Hacker News

Rewriting Bun in Rust

bun.com

1–10 of 560 posts

Re: Rewriting Bun in Rust

#2
Adding bespoke animations via Claude Code to the blog post is definitely thematic. It's unclear if they're useful data visualizations as they take a bit of time to parse, but they're neat.

Re: Rewriting Bun in Rust

#3
One thing that I found interesting is that most of the discourse surrounding the topic happened with the assumption that the rewrite was happening with an Opus-like model, and not with Fable. Those assumptions, at least partially, were used as arguments against the fact that the rewrite was feasible and/or a good idea.

Clearly the model itself doesn't completely change the narrative, but at least as a note to myself, I would like to be more careful with assuming the capabilities of the models used internally by Anthropic and affiliated orgs.

Re: Rewriting Bun in Rust

#4
As expected [0] [1], this was a clear advertisement / marketing opportunity of Anthropic's Fable model on rewriting Bun (which powers Claude Code) from Zig into Rust.

Something that would have taken hundreds of developers now took 1 developer with Fable.

Now Claude, rewrite Claude Code from TypeScript to Rust. Make absolutely zero mistakes.

[0] https://news.ycombinator.com/item?id=48073893

[1] https://news.ycombinator.com/item?id=48240829

Re: Rewriting Bun in Rust

#5
Without commenting on Bun itself as a project, or the nature of the rewrite, it can't be good for Zig that a naive rewrite away from it fixed memory leaks, improved stability, shrunk binary size by 20%, and improved performance by 5%.

Re: Rewriting Bun in Rust

#6
post #4

As expected [0] [1], this was a clear advertisement / marketing opportunity of Anthropic's Fable model on rewriting Bun (which powers Claude Code) from Zig into Rust. Something that would have taken hundreds of developers now took 1 developer with Fable. Now Claude, rewrite Claude Code from TypeScript to Rust. Make absolutely zero mistakes. [0] https://news.ycombinator.com/item?id=48073893 [1] https://news.ycombinato…

EDIT: the parent has effectively deleted their original comment

> There are a lot of ways to do a terrible job of this. For example, prompting Claude "Rewrite Bun in Rust. Don't make any mistakes." and then praying it would work is not what I did.

Re: Rewriting Bun in Rust

#7
post #4

As expected [0] [1], this was a clear advertisement / marketing opportunity of Anthropic's Fable model on rewriting Bun (which powers Claude Code) from Zig into Rust. Something that would have taken hundreds of developers now took 1 developer with Fable. Now Claude, rewrite Claude Code from TypeScript to Rust. Make absolutely zero mistakes. [0] https://news.ycombinator.com/item?id=48073893 [1] https://news.ycombinato…

EDIT: the parent has effectively deleted their original comment > There are a lot of ways to do a terrible job of this. For example, prompting Claude "Rewrite Bun in Rust. Don't make any mistakes." and then praying it would work is not what I did.

[flagged]

Re: Rewriting Bun in Rust

#8
post #7

Earlier quoted context omitted.

EDIT: the parent has effectively deleted their original comment > There are a lot of ways to do a terrible job of this. For example, prompting Claude "Rewrite Bun in Rust. Don't make any mistakes." and then praying it would work is not what I did.

[flagged]

Hacker News does not have a meme-y culture, and this post takes this topic pretty seriously and is technically interesting.

It's not so much that I missed that it was a joke, I just don't think that it really added to the discussion.

What you've edited it to is a much better comment.

Re: Rewriting Bun in Rust

#9
post #5

Without commenting on Bun itself as a project, or the nature of the rewrite, it can't be good for Zig that a naive rewrite away from it fixed memory leaks, improved stability, shrunk binary size by 20%, and improved performance by 5%.

I would guess that people looking to use Zig understand that those are project concerns and not language concerns.
Post reply on HN