Re:Zig 0.13.0 Release Notes
by fwsgonzo on Friday June 07, 2024 @03:52AM
(#40606298)
As usual the HTTP client example is broken again: https://github.com/fwsGonzo/libriscv/blob/master/binaries/zi...
[ Parent
| on HN ]
Re:Zig 0.13.0 Release Notes
by ladyanita22 on Friday June 07, 2024 @07:35AM
(#40607606)
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
by ladyanita22 on Saturday June 08, 2024 @03:21PM
(#40619650)
Soon I'll write something and publish it.
Re:Zig 0.13.0 Release Notes
by mikemitchelldev on Friday June 07, 2024 @07:55AM
(#40607752)
Have you published these benchmarks?
Re:Zig 0.13.0 Release Notes
by ladyanita22 on Saturday June 08, 2024 @03:22PM
(#40619656)
Not yet, but I'll soon
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
by ladyanita22 on Saturday June 08, 2024 @03:22PM
(#40619655)
I'll write something an post it here in HN
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
by AndyKelley on Friday June 07, 2024 @01:20PM
(#40610724)
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...
Thank you! That explains it. I must have made the example for 0.11!
Re:Zig 0.13.0 Release Notes
by marler8997 on Friday June 07, 2024 @06:32PM
(#40613643)
Here's an example: https://github.com/marler8997/zigup/blob/4d25c7e387a996c6b83...