News for hackers. Stuff that matters.
Re:I Believe Zig Has Function Colors by egeozcan on Saturday April 09, 2022 @05:59AM (#30966616)
> But with go's green threads, does it really matter if something blocks or not?

Then you keep pushing stuff to other threads "just to be sure", which may hurt performance but the worst part becomes reading that code.

Re:I Believe Zig Has Function Colors by kaba0 on Saturday April 09, 2022 @08:38AM (#30967533)
There is a fine balance here, I believe. Java plans on introducing something called structured concurrency to tackle this problem, but even without it I don’t believe that this is a unidirectional tradeoff. Async programming even with syntactic sugar can be overwhelming easily as well.