Remix.run Logo
fcarraldo 5 hours ago

Contributors and maintainers will also be easier to find in Rust than Zig.

Zig is a great language and I want to see it succeed, but this is a prudent move for Bun.

GuB-42 4 hours ago | parent | next [-]

I wouldn't call any port "prudent". In general, taking mature software and doing any major rewrite is one of the riskiest thing you can do. It is a large scale attempt to fix what isn't broken.

Sometimes it is worth it, but it may also kill projects. A risky move. And AI doesn't help its cause. AI can save a lot of time when making ports, it is one of the things it does best, but it doesn't protect from regressions.

I am not using Bun in production, but if I was, I would consider it a risk. Not because of Rust vs Zig, but for changing things that work.

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

This is likely irrelevant given bun has stopped taking community PR's entirely and Jarred is pitching that human contributors should be banned.

etoxin 5 hours ago | parent | next [-]

There is like 1,713 open PR's on the Bun repo. I'm assuming all are from Claude or robobun?. I guess this gives us an insight on what the claude-code workflow look likes. Crazy times.

jabedude 4 hours ago | parent | prev [-]

Where is a source for either of these extraordinary claims?

csande17 4 hours ago | parent [-]

https://x.com/jarredsumner/status/2048434628248359284

lioeters 2 hours ago | parent | next [-]

Wow, didn't realize how bad the situation was. Completely lost any respect and trust I had in the Bun project and its lead dev.

kelnos 2 hours ago | parent | prev | next [-]

What a weird take. I do a ton of OSS, and the act of writing code is what makes it fun for me. If I were forced to use an LLM to write all my OSS code, I would just not do it anymore.

shadowfiend 4 hours ago | parent | prev [-]

The gp's interpretation of that tweet is such a completely incorrect reading as to make one think it's likely disingenuous.

slopinthebag 3 hours ago | parent [-]

> I expect OSS to go the opposite direction: no human contribution allowed.

How is it an incorrect interpretation? Jared is indeed pitching/suggesting/predicting that human contribution will not be allowed in the near future, i.e. banned.

kelnos 2 hours ago | parent | next [-]

"Pitching" generally means that the person making the pitch is endorsing and pushing for it. (This might also be a regional word meaning/usage difference type thing.)

The person upthread should have said "predicting".

Philpax 2 hours ago | parent | prev [-]

A prediction is not a policy.

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

Why didn't they use Rust in the first place then ? All this was true before AI

tux1968 3 hours ago | parent [-]

Anthropic only acquired Bun in December of last year. They weren't there in the first place, to make the decision.

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

I don't think Zig is different enough from rust or any other systems language for it to matter. If you can write rust you can write Zig.

jaggederest 5 hours ago | parent | next [-]

Anthropic makes claude, claude can write Rust like a champ and struggles at Zig. It's a straightforward "training data" argument.

I think there are even longer term plays that Anthropic should be looking at, in this space, but it seems like they've decided rust is the right thing, so fair play. I would be (am!) thinking about making an LLM optimized high level language that you can generate / train on intensively because you control the language spec.

aabhay 5 hours ago | parent | next [-]

Claude doesn’t write Rust like a champ. It’s still miles ahead at js and python than it is at rust. It can do macros and single file optimizations but its gotten really stuck in type hell and tried to dyn everything on multiple occasions for me.

vlovich123 4 hours ago | parent [-]

Claude struggling at Rust: not getting types correct, using the wrong abstractions, not implementing things correctly

Claude struggling at Zig: the above + memory safety issues if you run “fast” mode.

It is generally true that Rust code tends to be written in a way that the compiler catches the issue at compile time. The same is not as true for Zig, Python or JS

dnautics 5 hours ago | parent | prev [-]

claude does not struggle with zig? not in my hands anyways.

speed_spread 5 hours ago | parent | prev [-]

I'm reminded of the old joke "how to shoot yourself in the foot in 25 different languages". The first one was "C - you shoot yourself in the foot." Zig remains very close to that philosophy.

So the difference is not in writing new stuff but in maintaining the existing codebase. Rust's rigidity makes it potentially harder to break stuff compared to Zig's general flexibility. As a project grows and matures, different types of contributors naturally come in and it's unreasonable to expect everyone to learn about historical footguns that may have accumulated.

chrisweekly 5 hours ago | parent | prev [-]

100%. For many people, Bun is the only reason they've even heard of Zig. I'm not in a position to comment intelligently on comparative language features per se, but when it comes to mindshare and community size, Rust is a clear winner.

majormajor 4 hours ago | parent [-]

fwiw before today I'd heard of Zig and not Bun :D

something JS-adjacent could certainly be more known than an obscure language but are that many people using drop-in node replacements?

Dylan16807 2 hours ago | parent [-]

fwiw I knew about both but I had no idea Bun was written in Zig.