News for hackers. Stuff that matters.
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by virajk_31 on Thursday July 23, 2026 @06:05AM (#49019200)
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
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by Zambyte on Thursday July 23, 2026 @07:29AM (#49019858)
Claude Code uses Bun written in Rust now

https://news.ycombinator.com/item?id=48966569

What failed?

Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by virajk_31 on Thursday July 23, 2026 @08:43AM (#49020681)
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)
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by samtheprogram on Thursday July 23, 2026 @11:00AM (#49022758)
You wrote "port", perhaps you meant "maintain"?
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by Zambyte on Thursday July 23, 2026 @11:58PM (#49031070)
What failed?
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by nfbdhdfbf on Thursday July 23, 2026 @08:46AM (#49020716)
… failed to maintain it in Zig due to the LLM issues. You misread
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by naiveter on Thursday July 23, 2026 @07:39AM (#49019981)
Do you have a source for that?
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by virajk_31 on Thursday July 23, 2026 @08:41AM (#49020660)
Why would Anthropic ever admit this?
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by naiveter on Saturday July 25, 2026 @09:25AM (#49047406)
They wouldn't. But I was curious why you were confident that Anthropic "blamed" on anything.
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by allthetime on Thursday July 23, 2026 @11:41AM (#49023401)
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 by naiveter on Saturday July 25, 2026 @09:24AM (#49047402)
I can see why that's the case, given that Rust is that much more popular than Zig. I wonder whether there's a difference between LLMs reading code and writing. If reading code is easier than writing it, then it makes sense that Claude was able to port from Zig to Rust with good results.
Re:Cruller: Bun's Zig Runtime, Continued on Zig 0.16 by allthetime on Saturday July 25, 2026 @01:18PM (#49049498)
Aside from relative lack of examples, Zig also changes fundamentally from version to version.

LLMs are fundamentally pattern recognizers though. Bun is big with lots of repeated conventions - very straight forward to translate those conventions to others (zig to rust)

I’ve been building a toy game engine for learning and have had great success translating small C libs (collision detection and physics for instance) into zig, often in one shot.