News for hackers. Stuff that matters.
Re:Show HN: HyperLogLog in Zig by Alifatisk on Tuesday January 10, 2023 @12:51AM (#34321019)
Why is Zigs syntax so … foreign to me? What’s the hype behind it?
Re:Show HN: HyperLogLog in Zig by int_19h on Tuesday January 10, 2023 @01:53AM (#34321414)
Take a look at Rust and you'll see where a lot of it is coming from.
Re:Show HN: HyperLogLog in Zig by seiflotfy on Tuesday January 10, 2023 @07:00AM (#34323483)
Actually i found zig easier to read than rust… something that i found more appealing!
Re:Show HN: HyperLogLog in Zig by Alifatisk on Tuesday January 10, 2023 @09:18AM (#34325159)
I used to hate Rusts syntax, but a YT channel in the name of ”No boilerplate” made me see the beauty in it.
Re:Show HN: HyperLogLog in Zig by kristoff_it on Tuesday January 10, 2023 @11:51AM (#34327686)
You're looking at a piece of code that's doing a type of metaprogramming mostly unique to Zig. Additionally I'm using a for loop capture syntax that is not common in other languages (closest thing I can think of are Ruby blocks).

You're just looking at a piece of code that is understandable for a newcomer to not find familiar.