News for hackers. Stuff that matters.
Re:Some Thoughts on Zig by flohofwoe on Friday July 22, 2022 @03:28AM (#32189481)
Erm, Go channels were a pretty big deal in the beginning, as well as the idea of creating a 'better C' (instead of a 'better C++').
Re:Some Thoughts on Zig by masklinn on Friday July 22, 2022 @07:12AM (#32190702)
> Erm, Go channels were a pretty big deal in the beginning

In what world did people not know about MPMC queues?

Re:Some Thoughts on Zig by flohofwoe on Friday July 22, 2022 @08:47AM (#32191335)
When Go came around I wasn't aware of other popular languages which has channels as a core language feature (but maybe I was just ignorant).
Re:Some Thoughts on Zig by pjmlp on Friday July 22, 2022 @09:08AM (#32191509)
Erlang came out in 1986.

Here are the experiences of Wooga and Activision/Blizzard using it.

https://www.gdcvault.com/play/1016648/Why-Erlang

http://www.erlang-factory.com/upload/presentations/395/Erlan...

Re:Some Thoughts on Zig by Matl on Friday July 22, 2022 @05:48PM (#32197507)
While true, Erlang is a dynamic language, which has its own problems.

Go's concurrency builds on CSP and they're open about it, but it is not just about who came up with it but who made it mainstream and for that Go certainly deserves credit.

Re:Some Thoughts on Zig by masklinn on Friday July 22, 2022 @09:02AM (#32191457)
> other popular languages which has channels as a core language feature

That’s because other languages did not need channels as a core language features.

Go does for the same reasons it needs e.g. hashmaps or append as “core language features”: no generics.

As far as I could see, there was one cool thing Go brought to the table, and it’s select {}. That was (and still is, I think) pretty uncommon, though not unheard of (Erlang’s receive is similar, though it has different capabilities owing to different language semantics).

Re:Some Thoughts on Zig by cdelsolar on Saturday July 23, 2022 @08:57AM (#32202867)
What is a MPMC queue
Re:Some Thoughts on Zig by kaba0 on Friday July 22, 2022 @03:48AM (#32189596)
I absolutely don’t see anything in Go resembling C from a technical perspective, other than (before generics) being similarly unexpressive. It is much closer to JS than C in any way and shape.
Re:Some Thoughts on Zig by flohofwoe on Friday July 22, 2022 @04:35AM (#32189873)
I don't know, I currently write both C and JS on a daily basis, and I just can't see how Go is anything like JS. For me, Go is definitely in the C syntax family, while trying to solve roughly the same problems where Java has been used extensively (backend services).