News for hackers. Stuff that matters.
Re:Show HN: Smart pointers for the C programming language by ANTSANTS on Wednesday January 14, 2015 @01:58PM (#8888242)
> That said, I've tried making green threads for C and it was a nightmare. I got something working though, so it's possible, but still a nightmare.

By green threads, do you mean coroutines, or something more complicated? Try the libco library, it implements them in under a hundred lines of C + a small bit of assembly per architecture: https://gitorious.org/bsnes/bsnes/source/1a7bc6bb8767d6464e3...

Re:Show HN: Smart pointers for the C programming language by tormeh on Thursday January 15, 2015 @09:57AM (#8892737)
Green threads on multiple POSIX threads in portable C. That's when things get complicated.