News for hackers. Stuff that matters.
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by ozgrakkurt on Saturday May 09, 2026 @10:10PM (#48080341)
> Bun has had an extremely high amount of crashes/memory bugs due to them using Zig

This just sounds like they are not good at using Zig. I have been daily driving ghostty on linux for a fairly long time now and I have never seen these kinds of issues. I have also used ghostty on macos for a bit and didn't have any problems there either.

Zig is really good for writing stable and reliable code. There is also a database written in Zig that seems to be fairly successful [0].

I also wrote zig for some time and compiler/toolchain was really pleasant to use. I wrote more segfaults in Rust ffi code than all segfaults I had in Zig in total while I was writing Zig.

[0] https://tigerbeetle.com/

Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by wallstop on Saturday May 09, 2026 @10:44PM (#48080491)
Ah, yes, the "you're holding it wrong" defense. If one tool has a higher safety rating than another, significantly so, preventing entire classes of mistakes from happening that the other does not, in a kind of superset manner - even the most skilled craftsman will inevitably make mistakes that would have been prevented by the safer tool.
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by __loam on Sunday May 10, 2026 @07:30AM (#48083037)
It's very possible to write dogshit rust code.
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by staticassertion on Sunday May 10, 2026 @07:51AM (#48083198)
Yes, but you really have to go out of your way to segfault/ run afoul of memory safety issues, which are a pain in the ass to debug.
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by bergheim on Sunday May 10, 2026 @03:23AM (#48081762)
Not sure if ghostty is the best example https://mitchellh.com/writing/ghostty-memory-leak-fix
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by f311a on Sunday May 10, 2026 @05:25AM (#48082336)
I think the main problem with Bun is that they are trying to move very quickly.

Tigebeetle devs spend 90% time working on stability, safety, tests and so on. They don't need new features, they need reliable software. Their database is pretty simple in terms of features and their goal was always stability and speed. Bun devs spend the majority of the time adding new features.

Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by __loam on Sunday May 10, 2026 @07:31AM (#48083045)
Maybe they should put more consideration towards quality if they have a ton of memory issues.
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by staticassertion on Sunday May 10, 2026 @07:52AM (#48083203)
That's what they're doing.
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by baranul on Sunday May 10, 2026 @05:27AM (#48082343)
> This just sounds like they are not good at using Zig.

That's odd, because of the visibility of team Bun using the language, one would think they could get whatever help and guidance they asked for. Seems weird for team Bun to complain about crashes, leaks, and bugs if they could have what they are doing wrong explained to them or their issues fixed in a timely manner.