alcinnzalcinnz@floss.social
Jul 10, 2026, 6:20 PMWeirdly LibCo implements these in machine code rather than Assembly code, and takes care that this code can only be read/executed. Also (de)initializing threads is CPU-specific in terms of how much RAM's required.
Also it can defer to Windows' Fibers library, or POSIX's UContext library. I'll note that ARM has a particularly easy time swapping threads, only a couple opcodes!
Turns out that LibCo is all ports, no machine/kernel generic code!
2/2 Fin for today!