Live data from Hacker News

Zig 0.13.0 Release Notes

ziglang.org

1–10 of 25 posts

Re: Zig 0.13.0 Release Notes

#3
post #2

As usual the HTTP client example is broken again: https://github.com/fwsGonzo/libriscv/blob/master/binaries/zi...

Many examples out there are broken. As a sidenote, I've been benchmarking Zig, Rust and C++ with a fibonacci benchmark and the results basically show that C++ is the fastest, but within a 3% margin of error against Rust and Zig, which are mostly similar (Rust so ever slightly faster).

Re: Zig 0.13.0 Release Notes

#4
post #2

As usual the HTTP client example is broken again: https://github.com/fwsGonzo/libriscv/blob/master/binaries/zi...

Many examples out there are broken. As a sidenote, I've been benchmarking Zig, Rust and C++ with a fibonacci benchmark and the results basically show that C++ is the fastest, but within a 3% margin of error against Rust and Zig, which are mostly similar (Rust so ever slightly faster).

Have you published these benchmarks?

Re: Zig 0.13.0 Release Notes

#6
post #2

As usual the HTTP client example is broken again: https://github.com/fwsGonzo/libriscv/blob/master/binaries/zi...

Many examples out there are broken. As a sidenote, I've been benchmarking Zig, Rust and C++ with a fibonacci benchmark and the results basically show that C++ is the fastest, but within a 3% margin of error against Rust and Zig, which are mostly similar (Rust so ever slightly faster).

Can you please share the code? On my tests late last year it was basically Zig, C++, Rust.

Sorry I don’t have the code anymore.

Re: Zig 0.13.0 Release Notes

#8
post #5
post #2

As usual the HTTP client example is broken again: https://github.com/fwsGonzo/libriscv/blob/master/binaries/zi...

I mean it’s a random repo, what do you expect from the Zig authors?

I used the "official" example. It's OK that things break - just that I can't figure out how to update my previously working code. So, I'm wondering - where is the updated official example of using the HTTP client?

Re: Zig 0.13.0 Release Notes

#9
post #2

As usual the HTTP client example is broken again: https://github.com/fwsGonzo/libriscv/blob/master/binaries/zi...

Many examples out there are broken. As a sidenote, I've been benchmarking Zig, Rust and C++ with a fibonacci benchmark and the results basically show that C++ is the fastest, but within a 3% margin of error against Rust and Zig, which are mostly similar (Rust so ever slightly faster).

What's compiling C++? Having faster compilers available is nice, but comparing same llvm version would be interesting

Re: Zig 0.13.0 Release Notes

#10
post #8
post #5

Earlier quoted context omitted.

I mean it’s a random repo, what do you expect from the Zig authors?

I used the "official" example. It's OK that things break - just that I can't figure out how to update my previously working code. So, I'm wondering - where is the updated official example of using the HTTP client?

0.13.0 did not make any breaking changes to the std.http APIs.

Upgrade guide is in the 0.12.0 release notes: https://ziglang.org/download/0.12.0/release-notes.html#Rewor...

Post reply on HN