Live data from Hacker News

Cruller: Bun's Zig Runtime, Continued on Zig 0.16

ziggit.dev

121–127 of 127 posts

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#121

Earlier quoted context omitted.

Valkey is going strong still. So is Jellyfin, and Gitea/Forgejo.

mariadb

MariaDB feels more like the original devs sold the brand and kept business as usual with a new name, not a community fork.

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#122
post #41

Earlier quoted context omitted.

Claude Code uses Bun written in Rust now https://news.ycombinator.com/item?id=48966569 What failed?

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)

What failed?

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#123
post #36

i dont see the point of this to be honest, if rust is actually better for bun why are you people just hating on it for no reason? a software doesnt have to be written in your favourite language for it to work. bun was a sloppy project is zig and still sloppy in rust

I think it's the other way around. Bun is being ported from Zig to Rust for no significant benefit, but just for the sake of using AI. Bun doesn't gain any significant performance improvements. The codebase is now filled with unsafe blocks, which undermines many of Rust's safety guarantees. On top of that, it hasn't undergone enough real-world testing to ensure it works correctly.

Re: Cruller: Bun's Zig Runtime, Continued on Zig 0.16

#125

Earlier quoted context omitted.

Do you have a source for that?

I work with both Rust and Zig. Claude is much more efficient (~ magnitude in time) and correct (output actually compiles) with rust.

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

#127

Earlier quoted context omitted.

I work with both Rust and Zig. Claude is much more efficient (~ magnitude in time) and correct (output actually compiles) with rust.

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.

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.

Post reply on HN