8 ms·
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
by virajk_31 2mo ago
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
- Zambyte 2mo agoClaude Code uses Bun written in Rust now https://news.ycombinator.com/item?id=48966569 https://news.ycombinator.com/item?id=48966569 What failed?
- virajk_31 2mo agoPlease 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)
- samtheprogram 2mo agoYou wrote "port", perhaps you meant "maintain"?
- Zambyte 2mo agoWhat failed?
- nfbdhdfbf 2mo ago… failed to maintain it in Zig due to the LLM issues. You misread
- naiveter 2mo agoDo you have a source for that?
- virajk_31 2mo agoWhy would Anthropic ever admit this?
- naiveter 2mo agoThey wouldn't. But I was curious why you were confident that Anthropic "blamed" on anything.
- allthetime 2mo agoI work with both Rust and Zig. Claude is much more efficient (~ magnitude in time) and correct (output actually compiles) with rust.
- naiveter 2mo agoI 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.
- allthetime 2mo agoAside 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.