By scipio on Skatehive
Learn Zig Series (#18) - Async Concepts and Event Loops What will I learn You will learn why Zig removed async/await and what replaced it; the difference between blocking I/O, non-blocking I/O, and I/O multiplexing; how poll() and epoll work at the OS level and how Zig exposes them; building a simple event loop from scratch using std.posix.poll; multiplexing multiple TCP connections without threads; comparing Zig's approach to Python asyncio and Node.js event loops; when to use threads vs event loops vs blocking I/O; practical patterns for writing concurrent network services in Zig. Requirements A working modern computer running macOS, Windows or Ubuntu; An installed Zig 0.14+ distribution (download from ziglang.org); The ambition to learn Zig programming. Difficulty Intermediate Curriculum (of the Learn Zig Series): Zig Programming Tutorial - ep001 - Intro Learn Zig Series (#2) - Hello Zig, Variables and Types Learn Zig Series (#3) - Functions and Control Flow Learn Zig Series (#4) -