News for hackers. Stuff that matters.
Re:Zig's new plan for asynchronous programs by Dwedit on Tuesday December 02, 2025 @12:05PM (#46123462)
Async always confused me as to when a function would actually create a new thread or not.
Re:Zig's new plan for asynchronous programs by metaltyphoon on Tuesday December 02, 2025 @06:00PM (#46128120)
Why? Asynchrony has nothing to do with multiple threads. In fact you can have async with only a single thread!
Re:Zig's new plan for asynchronous programs by darthwalsh on Wednesday December 03, 2025 @11:01AM (#46136036)
Zig doesn't make it simpler! Now in a single function, using async won't spawn threads, while using sync might.

But I'm digging this abstraction.