Honest question, what is the zig version of goroutines these days? They removed async from the spec.
Honestly the only reason why I stick to golang for some projects are goroutines.
Honestly the only reason why I stick to golang for some projects are goroutines.
The fully userspace implementation is a bit more syntactically clunky than the concurrency primitives in Go, but it is very similar semantically.
I remember having read somewhere that zig now requires to pass the Io argument around, which one can interpret again as "colored functions". IMHO it is a missed opportunity not to implement a more polished syntax and make a message passing paradigm a "first class citizen" in zig. Anyway, I like the fact that zig is iteratively "improved" and not a virtually "dead" language compared to golang :-)