Live data from Hacker News

The Zig and Go Programming Showdown

erikexplores.substack.com

11–13 of 13 posts

Re: The Zig and Go Programming Showdown

#11
post #7

Earlier quoted context omitted.

"I think goroutines are preferable in that context because async/await is a much lower level tool that is easy to misuse, but when it comes to writing code with critical requirements of correctness and efficiency, you need async/await and you need Zig’s philosophy that we all should strive to write robust, optimal, and reusable software." I don't see how this follows. Async/await is a disaster in every way, M:N threa…

Goroutines (and stackful coroutines in general) require a runtime. Go has to sprinkle suspension points everywhere in the machine code (to prevent starvation) and when it needs to grow a goroutine stack, it also needs to know how to adjust every single relevant pointer in the entire program's memory to point to the new stack location. This is not something that a systems programming language would want to do. I agree…

Agree, while I prefer the Go model from a usability perspective, I don't think that is the way to go for a language such as Zig. Zig seems to have done a really good job within the boundaries set by a language which aims for minimal level of abstraction.

Re: The Zig and Go Programming Showdown

#12
post #6

Earlier quoted context omitted.

It is paywalled. When you scroll down you have to subscribe to keep reading. The section "What Made Me Nearly Give Up on Zig" is closed behind a red big banner that says "keep readying with a 7 days trial". To the thread creator: Please just stop, no one wants to subscribe to read your opinion, experience on certain languages

Isn't there a 'let me keep reading' button on these substack popups?

You can sign up for a free trial and cancel before any payment is required. I know that can be annoying, but as a writer you have to have some way of getting people interested in trying a subscription. Not easy to find a good balance for both readers and writers.

Re: The Zig and Go Programming Showdown

#13
post #6

Earlier quoted context omitted.

It is paywalled. When you scroll down you have to subscribe to keep reading. The section "What Made Me Nearly Give Up on Zig" is closed behind a red big banner that says "keep readying with a 7 days trial". To the thread creator: Please just stop, no one wants to subscribe to read your opinion, experience on certain languages

I am actually the author, and I didn't start this thread. People have to decide for themselves whether it is worth reading or not. Lots of people subscribe to Substack to read experiences, opinions on various subjects. Nobody will put in the effort to write these kinds of articles over time unless they can make some money on it either through subscriptions or ads. Personally I trying to find a balance by letting peop…

> Nobody will put in the effort to write these kinds of articles over time unless they can make some money on it either through subscriptions or ads.

That's fine. Please stop doing it.

Post reply on HN