Saturday, May 09, 2026

Anthropic AI: Bun.js: Zig fork; Rust port?

zig.lang does not allow LLM contributions... so need to be forked to leverage AI tools?

now as part of Anthropic, likely with unlimited AI tokens available, bun.js can as well be ported to any language of choice, like Rust... both are compiled by LLVM... 

Zig is "human friendly" language, Rust is much more complicated... 

And Anthropic is "playing to win" not to "be nice"... 

oven-sh/bun: Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one GitHub


Contributor Poker and Zig's AI Ban | Loris Cro's Blog

Bun on X: "We do not currently plan to upstream this, as Zig has a strict ban on LLM-authored contributions." / X

Bun’s Zig fork got 4x faster compilation times - Showcase - Ziggit

Bun's Rewrite It In Rust branch : r/rust

Jarred-Sumner, the creator of Bun (a JS runtime), has created a Rust port branch in Bun's repository with Claude AI, which has 760k LoC at the moment.

I work on Bun and this is my branch This whole thread is an overreaction. 302 co... | Hacker News

"I’m curious to see what a working version of this looks, what it feels like, how it performs and if/how hard it’d be to get it to pass Bun’s test suite and be maintainable. I’d like to be able to compare a viable Rust version and a Zig version side by side."


Zig is at a crossroads - YouTube by PrimeTime

This video explores a controversy involving Bun (a JavaScript utility) now owned by Anhropic.ai and its decision to fork the Zig programming language. Here are the key takeaways:

  • The Fork Controversy: Bun created a fork of the Zig language to implement a performance enhancement for parallel debug builds. However, they opted not to upstream these changes due to Zig’s strict policy prohibiting LLM-authored contributions.

  • The Zig Philosophy: Zig is known for its careful, deliberate approach to development, often prioritizing long-term stability and correct design over rapid feature velocity. The language maintainers have expressed that they have their own, more robust solutions in development for the performance issues Bun was trying to solve.

  • AI and Open Source: The video highlights a growing friction point where organizations using advanced AI models attempt to force rapid changes onto open-source projects. This creates a cultural clash between "move fast" engineering practices and the methodical, community-driven development style of long-standing language projects.

  • Engineering Reality Check: Zig maintainers clarified that the parallelization strategy Bun implemented could introduce non-deterministic bugs (causing random compilation failures). They emphasized that true performance gains come from addressing architectural bottlenecks, such as LLVM overhead, rather than simply hacking in parallelization.

  • The Bigger Picture: The incident serves as a case study for the risks of forking software based on AI-generated spikes. It reinforces the importance of deep, domain-specific engineering over superficial speed-ups that may compromise code reliability.

Bun Zig-to-Rust Rewrite: Anthropic Bets on AI Code | byteiota

Anthropic is rewriting Bun—the JavaScript runtime with 89,000 GitHub stars and 7 million monthly downloads—from Zig to Rust using Claude AI to auto-generate the port. A GitHub branch named claude/phase-a-port shows 1,799 files changed across 43 commits, and the comparison is so large GitHub can’t even render it. This isn’t a refactor. It’s a complete language migration driven by AI, and it’s happening right now. (as a test)


Home ⚡ Zig Programming Language

A Simple Language
Focus on debugging your application rather than debugging your programming language knowledge.No hidden control flow.
No hidden memory allocations.
No preprocessor, no macros.

 ⚡ Comptime

A fresh approach to metaprogramming based on compile-time code execution and lazy evaluation.Call any function at compile-time.
Manipulate types as values without runtime overhead.
Comptime emulates the target architecture.

 ⚡ Maintain it with Zig

Incrementally improve your C/C++/Zig codebase.Use Zig as a zero-dependency, drop-in C/C++ compiler that supports cross-compilation out-of-the-box.
Leverage zig build to create a consistent development environment across all platforms.
Add a Zig compilation unit to C/C++ projects, exposing the rich standard library to your C/C++ code.

No comments: