Re:Zig's new plan for asynchronous programs
by nine_k on Tuesday December 02, 2025 @12:52PM
(#46124109)
Can you create a thread pool consisting of one thread, and suspend / resume the thread?
[ Parent
| on HN ]
Re:Zig's new plan for asynchronous programs
by RossBencina on Tuesday December 02, 2025 @04:52PM
(#46127403)
Doesn't that negate the point of using coroutines? light-weight concurrency
Re:Zig's new plan for asynchronous programs
by nine_k on Tuesday December 02, 2025 @10:05PM
(#46129826)
It does, sadly.
Re:Zig's new plan for asynchronous programs
by ethin on Wednesday December 03, 2025 @10:51AM
(#46135888)
I mean I guess I could... But threads are pretty heavyweight. Though there may be a more lightweight way of implementing them in kernel mode (not coroutines or fibers, but actual threads) and I just have never heard of it.