News for hackers. Stuff that matters.
Re:Simple coroutines for games in C++ by gpderetta on Monday March 21, 2016 @04:24PM (#11331615)
nPth can use swapcontext if everything else fails, but its preferred portable switching strategy is the so called sigaltstack trick witch is usually significantly faster.

BTW, I'm the author of the above page. Coroutine libraries have been my personal hobby since forever.

Re:Simple coroutines for games in C++ by srean on Tuesday March 22, 2016 @01:12AM (#11334542)
In that case you might enjoy taking a look at

http://felix-lang.org/

http://felix-lang.org/$/usr/local/lib/felix/felix-2016.01.04...

I am not involved in its development.