Live data from Hacker News

Cruller: Bun's Zig Runtime, Continued on Zig 0.16

ziggit.dev

91–100 of 127 posts

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#91
post #41

Earlier quoted context omitted.

Claude Code uses Bun written in Rust now https://news.ycombinator.com/item?id=48966569 What failed?

Please re-read my comment, I didn't mention anything about Rust. (IK they later switched to Rust. A year ago no LLMs were good at rust, similar to zig today, however its different story now)

You wrote "port", perhaps you meant "maintain"?

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#92
post #52

Earlier quoted context omitted.

Because there will be a reason why the code was changed that introduced the bug. If you fix the bug you might inadvertently break a different piece of functionality. A git commit gives you the reason for the change and the context of what other files were changed at the same time. I’ve found that invaluable.

Guess I must be doing something wrong to never have encountered this issue in my 5 years.

I'm tempted to suggest you have encountered the issue but your team mates are shielding you from the consequences (with or without their knowledge).

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#93
post #78

Earlier quoted context omitted.

I think there are quite a few high profile examples where the fork was successful (egcs comes to mind which eventually became the official gcc, also all the BSD flavours). And even when the fork ultimately isn't successful, it sometimes at least forces the original project to adapt (e.g. ffmpeg vs libav). E.g. "it's difficult to make predicitions, especially about the future" ;) PS: of course for this specific projec…

egcs was almost 30 years ago, fwiw.

...strange, I remember the drama like it was just yesterday ;)

But anyway, GCC was already an established and popular compiler at that time.

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#94

I don't understand why the git history has been pruned in this fork. According to the first commit in this fork: > Squashed as a single orphan commit — the original oven-sh/bun history isn't relevant to this stripped fork and its shallow clone doesn't push cleanly to a fresh remote. IMHO it's always a bad decision to do that. Here, all commit authors are lost. The original history is always relevant.

How is the history relevant? Honest question. 5 years in the field I never had a reason to check out the git history of any project I ever worked on.

You never run a git blame or git bisect to find out when and under which circumstances a regression or bug was introduced, and why this specific change was made? That might work for a while on a personal project, but is essential in a team project. It's not uncommon that by fixing a bug you also accidentially undo an actually intended change. Doing some software archeology in the git history and tracing back the steps that led to the bug/regression usually prevents that sort of thing. You'd also want to notify the person who introduced the bug (and if this is a good and honorable chap, they'll fix the bug themselves).

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#96
post #6

As usual, most forks created out of community rupture eventually die.

Valkey is going strong still. So is Jellyfin, and Gitea/Forgejo.

Valkey made me forget redis existed in about a day. If I say redis now I actually mean valkey.

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#98

Earlier quoted context omitted.

Anthropic tried hard to port using their LLMs but their models were not trained on enough zig corpus hence failed and they blamed it on Zig's principles

Do you have a source for that?

I work with both Rust and Zig. Claude is much more efficient (~ magnitude in time) and correct (output actually compiles) with rust.

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#99

Earlier quoted context omitted.

> in this fork Not a fork, but a new project that takes a subset of the old Bun code to create something new, meant to complement Bun. “Cruller is not intended to replace Bun for development. It is a minimal, specialized runtime for executing production code. In any case, I do not want to throw away such a large codebase that has taken several years to build. It makes more sense to turn it into a convenient embeddabl…

A new project based primarily on existing code is still a fork. Also Ship of Theseus.

Wasn't the point of the Ship of Theseus precisely that establishing wether something is or isn't something else is at least complicated? Using it right after saying "X is still Y" kind of seems to make the opposite point.

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#100

I don't understand why the git history has been pruned in this fork. According to the first commit in this fork: > Squashed as a single orphan commit — the original oven-sh/bun history isn't relevant to this stripped fork and its shallow clone doesn't push cleanly to a fresh remote. IMHO it's always a bad decision to do that. Here, all commit authors are lost. The original history is always relevant.

> in this fork Not a fork, but a new project that takes a subset of the old Bun code to create something new, meant to complement Bun. “Cruller is not intended to replace Bun for development. It is a minimal, specialized runtime for executing production code. In any case, I do not want to throw away such a large codebase that has taken several years to build. It makes more sense to turn it into a convenient embeddabl…

That's a fork.

The git history should have been retained. It's helpful for the files that came over.

There is no good reason to erase all of the history. They should have deleted the files they didn't want to keep in a new commit.

Post reply on HN