News for hackers. Stuff that matters.
Re:Bun is being ported from Zig to Rust by endospore on Monday May 04, 2026 @11:10PM (#48017643)
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)
Re:Bun is being ported from Zig to Rust by neomantra on Monday May 04, 2026 @11:31PM (#48017761)
One non-obvious reason is that an important aspect of their community is to shepherd new contributors [1]. LLMs crushing everything would reduce that. More obvious is all the toil for maintainers dealing with LLM PRs (broadly it’s an issue). The Zig maintainers prefer to put their energy into improving people and fostering those relationship.

[1] https://kristoff.it/blog/contributor-poker-and-ai/

Re:Bun is being ported from Zig to Rust by lowbloodsugar on Tuesday May 05, 2026 @12:18AM (#48017988)
Yeah, I remember when the lazy bastards started writing programs using compilers instead of learning assembly language. Now I don’t have a single colleague who can write assembly. There’s whole generations now who can’t code assembly. Most don’t even know what a register is. Hope Zig holds against this latest attempt to make everyone stupid.
Re:Bun is being ported from Zig to Rust by uncircle on Tuesday May 05, 2026 @01:41AM (#48018504)
To add to the other commenters, loads of people don’t know assembly, which speaks to the quality of the average developer. The ones that still understand assembly to this day tend to be better developers, writing faster and more efficient code.
Re:Bun is being ported from Zig to Rust by crysin on Tuesday May 05, 2026 @02:45AM (#48018919)
I'd be very surprised if the "average" developer across the board was in fact not just a JavaScript / TypeScript only developer. I have no expectations or really even hope that the average developer I work with has ever written a line of assembly.
Re:Bun is being ported from Zig to Rust by DeathArrow on Tuesday May 05, 2026 @02:35AM (#48018840)
>The ones that still understand assembly to this day tend to be better developers, writing faster and more efficient code.

That is if you use something like C, C+=, Java, .NET, Go. With Javascript and Python I don't think knowing assembly would make any difference because it's hard to optimize the code in these languages for how the CPU and memory works.

Re:Bun is being ported from Zig to Rust by uncircle on Tuesday May 05, 2026 @03:17AM (#48019111)
Knowing assembly in this day and age is the result of being curious and wanting to understand how computers work, which means knowledge of algorithms, data structures, etc.

The same applies to vibe coding: the best "vibe coder" will paradoxically be the person with enough knowledge and curiosity to understand programming, how computer works and the subject at hand; one that could write the whole thing from scratch so they have enough judgement to review generated code.

Of course the vast majority will be mediocre vibe coders, and even worse programmers; at least that's the direction we're going.

Re:Bun is being ported from Zig to Rust by Chris2048 on Tuesday May 05, 2026 @12:29PM (#48024775)
> wanting to understand how computers work, which means knowledge of algorithms, data structures, etc.

It's possible to know in general terms, how computers work, and what assembly is without "knowing assembly" in the sense of being familiar with using/debugging it as a programming language.

Re:Bun is being ported from Zig to Rust by skydhash on Tuesday May 05, 2026 @07:05AM (#48020786)
Knowing assembly doesn’t mean you would spend your time writing assembly (aka being familiar with opcodes and architecture optimizations). But in the process, you get familiar with the working of the computer hardware and the OS that sits on top of it. That is always useful knowledge especially when needing to deal with binary format and protocols or FFI.
Re:Bun is being ported from Zig to Rust by Chris2048 on Tuesday May 05, 2026 @12:32PM (#48024812)
> But in the process..

Then it's sufficient to know assembly, but not necessary.

This is compatible with "[developers] that still understand assembly to this day tend to be better developers", but not with "[on developers who] don’t know assembly, which speaks to [their] quality".

Re:Bun is being ported from Zig to Rust by wiseowise on Tuesday May 05, 2026 @04:09AM (#48019408)
There’s a big difference between (mostly) deterministic compiler and non-deterministic LLMs.
Re:Bun is being ported from Zig to Rust by gls2ro on Tuesday May 05, 2026 @12:35AM (#48018074)
Generating AI code/PR is not the same as using compilers because of at least two things:

- the scale of how much and how fast you can generate code with AI vs how fast can you write code for compiler

- the mental model of what is being generated and how much the contributor understands and owns the generated code

Re:Bun is being ported from Zig to Rust by wtetzner on Tuesday May 05, 2026 @12:33AM (#48018065)
Using an LLM isn't analogous to using a higher level language.
Re:Bun is being ported from Zig to Rust by brabel on Tuesday May 05, 2026 @02:39AM (#48018874)
That’s funny because it’s exactly, literally the same. The difference is it’s not deterministic. That may be a problem but it’s still a higher level language, just a much higher level language than anything before.
Re:Bun is being ported from Zig to Rust by wiseowise on Tuesday May 05, 2026 @04:13AM (#48019438)
So by your logic all the PMs, managers and customers are programmers, right? After all, there’s a human compiler that takes their input and produces a program?
Re:Bun is being ported from Zig to Rust by brabel on Tuesday May 05, 2026 @05:46AM (#48020172)
They are programmers when they write a prompt and get runnable code as a result, yes… but no if asking a human to write the code because if you have an intermediate, manual step between the text and the running code, you don’t have an automated process and hence it’s no longer even an application, let alone a “compiler”.
Re:Bun is being ported from Zig to Rust by matt_kantor on Tuesday May 05, 2026 @12:09PM (#48024456)
Why does it matter if a human or a machine is responsible for turning the prompt into code?

If there's a black box which I can send C code into one side of and get faithful machine code out the other, I'd call that box a "compiler". I wouldn't rename it if I later find out that there are little elves inside doing the translation.

Re:Bun is being ported from Zig to Rust by brabel on Tuesday May 05, 2026 @02:34PM (#48026619)
Sorry but that’s a childish take.
Re:Bun is being ported from Zig to Rust by matt_kantor on Tuesday May 05, 2026 @08:22PM (#48030585)
Would you mind explaining why?
Re:Bun is being ported from Zig to Rust by xigoi on Tuesday May 05, 2026 @02:45AM (#48018920)
The main difference is that the input to an LLM is in an ambiguous language.
Re:Bun is being ported from Zig to Rust by brabel on Tuesday May 05, 2026 @05:50AM (#48020193)
A programming language is allowed to be ambiguous, I don’t know of a definition that excludes that!
Re:Bun is being ported from Zig to Rust by xigoi on Tuesday May 05, 2026 @06:34AM (#48020565)
All programming languages I know of provide at least some guarantees about the program’s behavior.
Re:Bun is being ported from Zig to Rust by skydhash on Tuesday May 05, 2026 @07:09AM (#48020819)
The language specs may be, but an implementation is never ambiguous. When you encounter and undefined behavior in the specs, that’s when you look at your compiler/interpreter docs.
Re:Bun is being ported from Zig to Rust by a_shiine on Monday May 11, 2026 @03:11PM (#48099342)
The kinda thoughts you form when you ever only vibe-coded
Re:Bun is being ported from Zig to Rust by newswasboring on Tuesday May 05, 2026 @07:41AM (#48021107)
So is JavaScript haha.
Re:Bun is being ported from Zig to Rust by bigstrat2003 on Tuesday May 05, 2026 @02:54AM (#48018966)
> That’s funny because it’s exactly, literally the same. The difference is it’s not deterministic.

So it is not, by your own admission, "exactly, literally the same".

Re:Bun is being ported from Zig to Rust by amoss on Tuesday May 05, 2026 @04:08AM (#48019402)
Take it gently, the poor thing doesn't understand the difference between code and talking about code.
Re:Bun is being ported from Zig to Rust by sandrello on Tuesday May 05, 2026 @06:47AM (#48020667)
I assume you're some sort of programmer and I genuinely wonder how in the world can someone in good faith downplay non-determinism and ambiguity when talking about a programming language.

High-level languages can certainly yield inefficient code when compiled, or maybe different code among different compilers, but they're always meant to allow their users to know exactly what to expect from what they put together in their programs. I've always considered this a hard fact, I simply cannot wrap my head around working in a way that forces me to abandon this basic assumption.

Re:Bun is being ported from Zig to Rust by gertop on Tuesday May 05, 2026 @12:49AM (#48018169)
Your analogy falls apart because the "lazy bastards" still knew how to program and understood the code they were working on.

Vide-coders often don't read, let alone understand, the code they send for PRs.

Re:Bun is being ported from Zig to Rust by merlindru on Tuesday May 05, 2026 @04:57AM (#48019818)
I don't think most JavaScript devs know how to read C code, let alone assembly, so I think the comparison is apt. Is it not?
Re:Bun is being ported from Zig to Rust by wtetzner on Tuesday May 05, 2026 @06:33AM (#48020553)
The JavaScript developers are checking in JavaScript code that they ostensibly understand. That is not the same as prompting an LLM to generate Zig that they don't understand, and expecting someone to merge it.
Re:Bun is being ported from Zig to Rust by merlindru on Tuesday May 05, 2026 @01:57PM (#48026103)
ah, i see what you're saying. fair point! though the argument was that LLMs essentially are a yet higher level programming language (or, rather, let you write in a higher level language).
Re:Bun is being ported from Zig to Rust by wtetzner on Wednesday May 06, 2026 @05:49AM (#48034315)
They do let you write in a higher-level language, but it's not really analogous to a higher-level programming language. The ambiguity and lack of determinism makes prompting fundamentally different from using a high level programming language.
Re:Bun is being ported from Zig to Rust by bbor on Tuesday May 05, 2026 @12:42AM (#48018117)
Well said! I don't think either party is really at fault here, but if Anthropic wanted to contribute non-negligible amounts of code over time then it's an absolute dealbreaker.

Sucks for people who were invested in contributing to Bun and don't like working with AI tools to be sure, but I think the writing was on the wall for them pretty much immediately post-acquisition. You must admit, it's hard to predict that 100% of source lines will be written by AI if you're not walking the walk!

Re:Bun is being ported from Zig to Rust by Dylan16807 on Tuesday May 05, 2026 @12:51AM (#48018177)
That's a solid reason to keep LLMs away from the kind of tasks that help with onboarding. But a patch series from a competent team that changes 3000 lines should probably be evaluated on its own merits. Or at least, the collaboration-based reasons to reject AI don't apply and the real reason would be something else.

(Though I don't know if this particular patch series would get accepted on its own merits.)

Re:Bun is being ported from Zig to Rust by riffraff on Tuesday May 05, 2026 @01:02AM (#48018245)
The recent article explained the bun patch would have been refused on technical merits as it's intrinsically incorrect, to be able to work properly it required some language changes.
Re:Bun is being ported from Zig to Rust by bboozzoo on Tuesday May 05, 2026 @01:57AM (#48018604)
> patch series from a competent team that changes 3000 lines should probably be

split into a bunch of much smaller changes?

Re:Bun is being ported from Zig to Rust by Dylan16807 on Tuesday May 05, 2026 @02:12AM (#48018698)
I don't understand your suggestion. If you take an ugly patch series that changes 3000 lines and organize it into small quality changes, it's still a patch series that changes 3000 lines.

There's no reason to assume my generic statement was talking about the ugly version rather than the nicely organized version.

Re:Bun is being ported from Zig to Rust by wolfi1 on Tuesday May 05, 2026 @03:37AM (#48019238)
perhaps not all of these 3000 line changes make sense?
Re:Bun is being ported from Zig to Rust by moomoo11 on Tuesday May 05, 2026 @02:26AM (#48018786)
I mean in an authoritarian system you wouldn’t make a one off exception like that.
Re:Bun is being ported from Zig to Rust by heavyset_go on Tuesday May 05, 2026 @05:37AM (#48020106)
It's important that developers have an accurate mental model of how things work, are structured and why.

LLMs promote a decoupling of mental models and the actual codebase.

As much as some may want to believe, just reviewing what the LLM outputs is not equivalent to thinking about implementation details, motivations, exactly how and why things are, and how and why they work the way they do, and then writing it yourself. The process itself is what instills that knowledge in you.

Re:Bun is being ported from Zig to Rust by sucrosesucrose on Tuesday May 05, 2026 @09:54AM (#48022584)
Exactly. This is what many ai-sloppers ignore. Mental models are crucial. Nothing substitutes for having the program itself in your brain and being able to "mentally debug" it when something breaks.
Re:Bun is being ported from Zig to Rust by ai_critic on Monday May 04, 2026 @11:23PM (#48017717)
It's a combination of pragmatism (not wanting to wade through slop, not wanting to shove out newbie developers) and politics (usual contemporary techie progressive stuff that's now oddly anti-technology).
Re:Bun is being ported from Zig to Rust by Onavo on Tuesday May 05, 2026 @12:08AM (#48017937)
I like your username.
Re:Bun is being ported from Zig to Rust by happymellon on Tuesday May 05, 2026 @02:58AM (#48018995)
> usual contemporary techie progressive stuff that's now oddly anti-technology

You can be against a particular technology without being "anti-technology".

See DRM/surveillance/bad self driving implementations.

Re:Bun is being ported from Zig to Rust by wiseowise on Tuesday May 05, 2026 @04:15AM (#48019459)
> usual contemporary techie progressive stuff that's now oddly anti-technology

Just because a thing exists doesn’t mean you have to use it for everything. You don’t use asbestos blanket? Why are you so against asbestos?

Re:Bun is being ported from Zig to Rust by a96 on Tuesday May 05, 2026 @07:08AM (#48020808)
Against blankets would be even more like that argument.
Re:Bun is being ported from Zig to Rust by KingMob on Tuesday May 05, 2026 @12:03AM (#48017915)
Possibly, but the Zig creator is active on Lobste.rs, where he's been vocally anti-LLM for a year now, so the timing could just be a coincidence.
Re:Bun is being ported from Zig to Rust by foresterre on Tuesday May 05, 2026 @12:47AM (#48018153)
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 arguments: copyright ethics, environmental ethics and maintainer burden.

Re:Bun is being ported from Zig to Rust by esperent on Tuesday May 05, 2026 @01:24AM (#48018389)
> has a multiplier codebase. A bug may affect a significant larger portion of users than most libraries or binaries will

Couldn't you say exactly the same about bun?

Re:Bun is being ported from Zig to Rust by emaro on Tuesday May 05, 2026 @02:45AM (#48018921)
Sure, but Bun is now owned by a company who's entire shtick is creating AI models. That shifts priorities.
Re:Bun is being ported from Zig to Rust by mert-kurttutan on Tuesday May 05, 2026 @02:48AM (#48018938)
It might be one of the reasons they want to migrate to Rust, i.e. to handle many these memory related issues by the compiler. Personally I used bun on a very few personal instances. But if you check issue reports, you will see memory bugs being reported say more than deno.
Re:Bun is being ported from Zig to Rust by DeathArrow on Tuesday May 05, 2026 @01:55AM (#48018597)
>Makes me wonder why zig announced the strict LLM rule recently.

I guess there are 2 philosophies in software development: move fast and break things and move at a pace that guarantees everything is rock solid.

Most commercial software, Anthropic included is taking the former path, while most infrastructure teams are taking the later.

I guess Linux and FreeBSD kernels are also not accepting LLM based contributions yet.

Re:Bun is being ported from Zig to Rust by woodruffw on Tuesday May 05, 2026 @02:04AM (#48018645)
> I guess Linux and FreeBSD kernels are also not accepting LLM based contributions yet.

Both appear to be[1][2]. FreeBSD doesn't have a formal policy yet, but they appear to be leaning towards admitting some degree of LLM contribution.

[1]: https://docs.kernel.org/process/coding-assistants.html

[2]: https://forums.freebsd.org/threads/will-freebsd-adopt-a-no-a...

Re:Bun is being ported from Zig to Rust by jeltz on Tuesday May 05, 2026 @03:17AM (#48019110)
> I guess Linux and FreeBSD kernels are also not accepting LLM based contributions yet.

PostgreSQL, a famously slow and rock solid project, accepts LLM-based contributions. But they are held to the same high standard, if you cannot explain the patch you submitted it likely get rejected.

Re:Bun is being ported from Zig to Rust by brabel on Tuesday May 05, 2026 @02:43AM (#48018903)
> move fast and break things and move at a pace that guarantees everything is rock solid.

Zig is famous for taking the former path! Anyone using Zig for a few years knows every release breaks things, and they are still making huge changes which I would classify as “moving fast”, like the recent IO changes!

Re:Bun is being ported from Zig to Rust by lukaslalinsky on Tuesday May 05, 2026 @04:19AM (#48019502)
Exactly, and Zig 0.16 is explicitly a release with known issues, just count the number of TODOs in the std.Io namespace.
Re:Bun is being ported from Zig to Rust by xydone on Tuesday May 05, 2026 @04:09AM (#48019413)
The LLM rule has been a thing for a very long time at this point.