Buz 是 pre-Rust Bun 的一个实验性分支,旨在成为 Bun 的即插即用替代品,侧重于通过 LLM 辅助的贡献实现增量编译和代码清理。

Stars

168

7 天增长

暂无数据

Fork 数

3

开放 Issue

0

开源协议

Unlicense

最近更新

2026-07-28

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它展示了一种新颖的分支维护方式:利用 LLM 进行代码重构和清理,同时移除超过 11,000 行死代码,并实现亚秒级增量构建。

适合谁使用

  • 对 Bun 内部结构或基于 Zig 的 JavaScript 运行时感兴趣的开发者
  • 习惯使用 LLM 辅助开发流程的贡献者
  • 对 WebKit 快速增量编译感兴趣的系统程序员
  • 愿意试验非生产分支的早期采用者

典型使用场景

  • 利用亚秒级增量重建进行迭代开发
  • 测试和贡献基于 Zig 的 JavaScript 运行时分支
  • 探索使用 LLM 进行大规模代码精简和重构
  • 学习从源代码编译 JavaScriptCore 和 ICU

项目优势

  • 通过 Zig 构建系统实现亚秒级增量编译
  • 从上游 Bun 中移除超过 11,000 行死代码
  • 跟踪 Zig 的主分支以获得最新的工具链支持
  • 从源代码构建大多数依赖项,包括 JavaScriptCore 和 ICU

使用前须知

  • 目前仅支持 x86_64-linux-gnu 构建和测试
  • 完整的上游测试套件尚未通过
  • 包含已知的未修补漏洞,不应在生产环境中使用

README 快速开始

Buz

Buz is an early-stage experimental fork of pre-Rust Bun. The goal of the fork is to be a drop-in replacement for Bun.

Features

  • Tracks Zig's master branch.
  • Supports sub-second incremental compilation.
  • Uses build.zig as the build-system entry point.
  • Builds most dependencies from source, including JavaScriptCore and ICU, enabling fast incremental builds of vendored WebKit code.
  • Over 11,000 lines of dead code removed from upstream Bun.
  • Includes Bun's upstream test suite.

Work in progress

  • Currently only native x86_64-linux-gnu builds and tests are in scope.
  • The full upstream test suite does not pass yet.
  • The codebase is still being refactored and deslopified. It is not ready for human review. It will take at least a few weeks of LLM-assisted cleanup before it's worthy of human contributor attention.
  • This codebase contains numerous known, unpatched vulnerabilities and uses an outdated version of JavaScriptCore that lacks the latest security fixes. Do not use in production.

Contributing

All contributions at this stage must be LLM-assisted. This policy will be lifted when the test suite is passing and the codebase is sufficiently cleaned up.

All accepted contributions must conform to the following:

  • Make all tests pass in at least one currently failing test file.
  • Fix the problem at the right scope. If a whole subsystem needs a rewrite, do not send in a set of small patches on a bad foundation.
  • Your changes should make the codebase cleaner and more idiomatic. Always reduce technical debt.
  • The PR must be merge-ready as far as you can tell. If either Sol Max or Fable Max finds anything actionable in your PR, it will not be accepted. This includes correctness, performance, simplicity, and maintainability. Human time will not be wasted on flaws that non-humans can spot.
  • By submitting a contribution, you agree to license your contribution under the Unlicense.

Building

Bootstrap Zig

You will need CMake >=3.15, LLVM + Clang + LLD at Zig's currently supported version (22.x as of writing), Git, Ruby with ERB, Python 3, and Perl.

git submodule update --init --recursive
cd zig-upstream
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make install
cd ../..

Build commands

Incremental debug build:

./zig build --watch -fincremental

Release build (for running the fu

项目描述

A fork of Bun based on modern Zig

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

kristoff-it
kristoff-it GitHub avatar

zig-bundler

A Zig build tool that compresses and embeds asset directories directly into executables, exposing them as Zig declarations.

Zig
27
nevvixsz
nevvixsz GitHub avatar

zp

zp is a minimal, source-based package manager written in Zig that fetches, builds, and installs packages from source by aggregating recipes from Void, Crux, and KISS Linux.

Zig
3