Buz – A fork of Bun using modern Zig, with sub-1s incremental builds

ziggit.dev

82 points by kristoff_it 4 hours ago


robertlagrant - 23 minutes ago

> I’ve cut over 11,000 lines of completely dead code from Bun. I can’t think of another project whose codebase was so neglected as to reach 11K lines of dead code. I’ve also rewritten and modernized parts of the codebase, trying to rely more on Zig’s stdlib. In the process, countless bugs have also been fixed.

This is astonishing. Is anyone else surprised at this dead code figure? Is it a feature of large projects I've just never noticed?

wsdn - an hour ago

> To this end, LLMs will be used extensively to deslop...

So we're using LLMs to clean up the code that LLMs ruined in the first place? We’ve reached peak tech in 2026.

999900000999 - 8 minutes ago

Here’s my idea.

DinnerRoll

Bun in D!

If someone with an MBA wants to raise capital we can start next Tuesday!

1a527dd5 - 13 minutes ago

This is what I like to call performative performance programming. I _LOVE_ performance as much as the next guy. And build times should be as close to 0 seconds as possible.

But this is approaching diminishing returns and I guarantee that your CURRENT bottleneck is not build times.

ksec - 13 minutes ago

>11K deadcode.

How did they end up there? There was another project trying to savage what is left of Zig Bun and turned it into a smaller runtime. I hope may be the project could both work together.

christophilus - 2 hours ago

Bun, but managed by someone who values code quality? Sign me up. It’s a Herculean task, though.

arendtio - an hour ago

Why is there so much buzz around bun? Can't we just go back to node + npm + vitest + vite?

k3vinw - 9 minutes ago

Should have called it Bunz!

fg137 - an hour ago

Very interesting, but without an ecosystem I doubt this person can keep maintaining it long term. Bun users who don't care about slop will continue to use Bun, those who care will go back to Node.js, and there isn't much left for this project. It is a gigantic task to maintain a JS runtime and add features.

mintflow - 29 minutes ago

saw another project based on pre-rust bun and this is another one never use bun and sometimes this make me wonder, are we enter a phase the supply way > requirement or people just build stuffs and not care serious usage anymore?

As a software engineer these days, I can't say i do not use Agent to help work done, but i am really a bit of tired to see so much solutions while not talk about what problem they are trying to really solve

Retr0id - 2 hours ago

> I don’t think any human should sacrifice their sanity untangling this mess of 600K lines of slop code. For that reason, I will not be accepting any human-coded contributions until I deem the project to be in a sane enough shape.

Very funny to see a "no humans allowed" contribution policy, and the absurd part is that the rationale actually makes sense.

I'm interested to see where this goes. Is it possible to "deslop" something of this magnitude?

rishav_sharan - an hour ago

[flagged]

- an hour ago
[deleted]
kristoff_it - an hour ago

To me the most interesting fact about this fork is that it has proven that Bun could have had fast builds all along.

To be fair, there are caveats still in place today: Zig incremental compilation does not yet support aarch64 and only the linux linker supports binary patching, but it's just a matter of time before all major platforms are conquered.