Earlier quoted context omitted.
Having dabbled with both Zig and Rust, they do things so fundamentally differently, it isn’t possible to do exact lines like that.
the rust they've written (so far) is highly unidiomatic (and with a ton of unsafe). I can't speak to the zig part, but it seems plausible to me it is line-by-line, horrendous rust. Whether or not they can clean it up is an interesting question.
Zig → Rust porting guide
221–230 of 592 posts
Re: Zig → Rust porting guide
#222Earlier quoted context omitted.
The gp's interpretation of that tweet is such a completely incorrect reading as to make one think it's likely disingenuous.
> 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.
The person upthread should have said "predicting".
Re: Zig → Rust porting guide
#223Earlier quoted context omitted.
Where is a source for either of these extraordinary claims?
https://x.com/jarredsumner/status/2048434628248359284
Re: Zig → Rust porting guide
#224Earlier quoted context omitted.
It's time! https://xkcd.com/286/
Wow. That xkcd was written in 2007, and part of the dialog is "didn't that [meme] die like five years ago?" Which means All Your Base, as a meme, was already getting somewhat stale by around 2002. It's hard to believe it's been that long.
Re: Zig → Rust porting guide
#225Why? Are there particular reasons that the maintainers of Bun feel the need to attempt to migrate from Zig to Rust?
Probably an experiment due to Bun's PRs to Zig being rejected (Zig does not allow AI use). If Rust works well enough, and the alternative is maintaining a fork of Zig, I'd guess they'd go with Rust.
[0] https://ziggit.dev/t/bun-s-zig-fork-got-4x-faster-compilatio...
Re: Zig → Rust porting guide
#226Hm does that actually work?
Edit: in a way that can be verified, and not the AI tool saying it did
Re: Zig → Rust porting guide
#227Earlier quoted context omitted.
Makes me wonder why zig announced the strict LLM rule recently. I'm afraid one reason could be that zig doesn't want to accept code from the bun fork in the first place (because of LLM usage, deviation and other reasons)
There are other reasons why a project like Zig might not want to accept LLM generated contributions. Zig, as programming language, has a multiplier codebase. A bug may affect a significant larger portion of users than most libraries or binaries will, as it's a fundamental building block of everything that uses Zig. Just that could be worth the extra scrutiny on every individual commit. There's also the usual argument…
Couldn't you say exactly the same about bun?
Re: Zig → Rust porting guide
#228Interesting to see this when the current top post on HN is someone worrying about Bun as it was acquired by Anthropic. The top comment there describes “Anthropic does experiments on their own codebase, the Bun team is not gonna do the same vibe coding experiments”. Yet here we are, what looks like a massive undertaking for vibe coding. Time will tell how this will turn out. Would be nice if the Bun maintainers could…
Re: Zig → Rust porting guide
#229Earlier quoted context omitted.
They recently tried to upstream an improvement to zig, but were prevented from doing so because zig has a hard and fast "no AI code" rule. Whether you think this response is trying to put pressure on zig or whether they're just moving for practical reasons is up to you. It's probably a bit of both.
Anthropic just needs to buy Zig! Problem solved.
Re: Zig → Rust porting guide
#230Earlier quoted context omitted.
They recently tried to upstream an improvement to zig, but were prevented from doing so because zig has a hard and fast "no AI code" rule. Whether you think this response is trying to put pressure on zig or whether they're just moving for practical reasons is up to you. It's probably a bit of both.
Anthropic just needs to buy Zig! Problem solved.
Lock the syntax/api together for a couple of years. Allow AI code in Zag.
Review after a few years, see which is better.