Remix.run Logo
yladiz 5 hours ago

Why? Are there particular reasons that the maintainers of Bun feel the need to attempt to migrate from Zig to Rust?

_--__--__ 5 hours ago | parent | next [-]

Possibly related to https://simonwillison.net/2026/Apr/30/zig-anti-ai/ where the Bun team wanted to upstream work to Zig that was rejected by a blanket anti-LLM contribution policy.

kristoff_it 5 hours ago | parent [-]

Code origin was not even a factor https://ziggit.dev/t/bun-s-zig-fork-got-4x-faster-compilatio...

_--__--__ 5 hours ago | parent [-]

That seems totally reasonable but I wonder if there was some head butting in non-public channels given Bun is one of the biggest players in Zig and planned to push through a change like that on their own.

kelnos an hour ago | parent | next [-]

Even if there was anything in private channels, the reasons stated in that forum post are alone more than enough to reject Bun's Zig changes.

croes 4 hours ago | parent | prev [-]

I wonder if they didn’t consider the problems of their changes in Zig what else do they not consider in Bun

nikeee 5 hours ago | parent | prev | next [-]

Zig is a moving target that has breaking changes in every release (which is fine as they are sub-1.0). But that means that AI tools have been trained on outdated syntax/etc. Zig isn't that common, so there is even less training data to begin with.

Rust on the other hand is pretty established by now and has less breaking changes. It also has more compile-time safety-guarantees that makes vibe-coding a bit more confident.

In top of that, Zig has rejected their upstream contributions. So they'd have to maintain their own compiler in the long run, which is probably just technical debt to maintain.

nullstyle 5 hours ago | parent [-]

Most of my vibe coding is in zig, and it has been my experience that Claude and Codex both keep up with zig changes just fine. Every now and then I catch them writing outdated code that they burn some tokens on, but my experience says your local codebases’s idioms will influence what gets generated enough to stop this from being a problem.

reissbaker 5 hours ago | parent | prev | next [-]

Probably an experiment due to Bun's PRs to Zig being rejected (Zig does not allow AI use). If Rust works well enough, and the alternative is maintaining a fork of Zig, I'd guess they'd go with Rust.

toshinoriyagi an hour ago | parent | next [-]

The anti-AI policy had nothing to do with Bun's PRs being rejected. This post[0] by a core zig maintainer explains why the PRs were low quality and subsequently rejected.

[0] https://ziggit.dev/t/bun-s-zig-fork-got-4x-faster-compilatio...

andriamanitra 12 minutes ago | parent [-]

Was there even a PR? The post from Bun [1] says they have no plan to upstream it, and that ziggit post says the changes are undesirable. It sounds like there never was anything to reject.

[1] https://x.com/bunjavascript/status/2048428104893542781

philwelch 5 hours ago | parent | prev [-]

Also, if Zig itself doesn’t accept AI contributions, it’s probably NGMI unless somebody is willing to maintain that fork.

tom_ 5 hours ago | parent | prev | next [-]

If the computer can do it for them, then why not?

sourcegrift 5 hours ago | parent | prev [-]

[flagged]

IggleSniggle 5 hours ago | parent | next [-]

Source?

philwelch 5 hours ago | parent | prev | next [-]

Normal, emotionally stable people don’t care if the creators of a programming language disagree with them about tariffs.

kelnos an hour ago | parent | next [-]

I can't find any evidence that the creators of Zig hold the views GP seems to suggest, but I think your assertion is wrong.

Normal, emotionally stable people do sometimes make decisions about what businesses to patronize based on the political leanings of the business owners. Same thing happens with art appreciation, movie/TV watching, and plenty of other things. Zig might not be a business, but the same rules apply.

You may think that's foolish, and not make your decisions that way, but it's a perfectly valid way to make decisions.

vips7L 4 hours ago | parent | prev [-]

Normal, emotionally stable people don’t drive business towards people they disagree with politically. You see that all around the country.

heldrida 5 hours ago | parent | prev | next [-]

Absolute nonsense. Why are you creating rumours?

philwelch 5 hours ago | parent [-]

Why would someone make up such a banal rumor? I’m not saying it’s true, I’m saying who cares?

tipiirai 5 hours ago | parent | prev [-]

Really? Do you have a source?