←back to thread

Async/Await is finally back in Zig

(charlesfonseca.substack.com)
39 points barddoo | 2 comments | | HN request time: 0.513s | source
1. devnull3 ◴[] No.45782819[source]
All the stunts in async/await or goroutines in go stem from the fact that there is no support for something lighter than posix threads in kernel.

Shouldn't the OS kernel innovate in this area instead of different languages in userland attempting to solve it?

replies(1): >>45783023 #
2. barddoo ◴[] No.45783023[source]
Fair. The languages have to come up with something based on APIs that were not meant for that, like io_uring, etc.