News for hackers. Stuff that matters.
Re:Let's write a setjmp by mananaysiempre on Sunday February 12, 2023 @07:42AM (#34762397)
POSIX pre-2008 had <ucontext.h> with proper stack switching functions, used as a fallback in a number of coroutine libraries. The fallback status is due to a self-inflicted flaw: they save and restore the signal mask, thus still need to go through the kernel (why e.g. Linux does not put signal mask manipulation in the vDSO, I don’t know). POSIX yanked them and now recommends that “applications be rewritten to use POSIX threads instead”, which is asinine.
Re:Let's write a setjmp by gpderetta on Sunday February 12, 2023 @09:02AM (#34762862)
And the 2008 was about the time that coroutines were gaining popularity again!