News for hackers. Stuff that matters.
Re:Factor is faster than Zig by shemii on Saturday November 11, 2023 @03:03AM (#38228426)
One thing I really don't unserstand is how bun already reached stability with it's 1.0 release (https://bun.sh/blog/bun-v1.0) while being written in Zig, which still hasn't reached it's 1.0 release.
Re:Factor is faster than Zig by fastball on Saturday November 11, 2023 @03:14AM (#38228463)
Bun is compiled to a binary, so not sure it matters how stable the underlying language is if Bun itself has a stable API?
Re:Factor is faster than Zig by KolmogorovComp on Saturday November 11, 2023 @05:56AM (#38229192)
That’s the point OP is making, even if the program is bug-free, given the compiler’s current state there’s a chance the compiled binary has bugs (due to miscompilation).

Now that can happen with every compiler but using one in still in alpha significantly increases the risk.

Re:Factor is faster than Zig by fastball on Saturday November 11, 2023 @10:21AM (#38231070)
Does it help at all that Zig is LLVM-based?
Re:Factor is faster than Zig by wredue on Saturday November 11, 2023 @11:12AM (#38231546)
Not particularly. And zig is moving away from llvm anyway.
Re:Factor is faster than Zig by kreetx on Saturday November 11, 2023 @04:06AM (#38228660)
Versioning isn’t an exact science, and people use whatever they see fit, both for technical but also marketing purposes.
Re:Factor is faster than Zig by brabel on Saturday November 11, 2023 @07:12AM (#38229650)
If you test your software built on Zig close to 100% then you can be pretty confident you didn't run into any of the Zig compiler bugs. Bun has certainly run into them but they can almost always be worked around... if you work around all problems and manage to catch everything then yeah, you can have an application that's production worthy while being built on a compiler that's not quite there yet.

The problem is, of course, you almost certainly didn't test anything near 100% and probably not even everything users may do with your software, so it's a risky bet.

Re:Factor is faster than Zig by losvedir on Saturday November 11, 2023 @08:14AM (#38230037)
If we're talking SemVer then 1.0 only means a commitment to a public interface. It doesn't mean the code has no more bugs and ready for use in a spaceship.

Conversely, taking on a dependency prior to its 1.0 just means you're on the hook for dealing with API changes as they come up. But as long as the API you expose doesn't change, it's fine to be on 1.0 yourself.