News for hackers. Stuff that matters.
Re:Go-style concurrency in C by jkarneges on Wednesday November 18, 2015 @04:08AM (#10586728)
Ah, I forgot libmill uses setjmp/longjmp. I'm not sure how that really works for coroutines though since you still need to deal with stack allocations. So replace "non-portable assembly" with "possibly non-portable C hacks". I haven't gotten around to digging deep in the code yet though. If libmill's approach is future-proof then that'd be pretty awesome.
Re:Go-style concurrency in C by rumcajz on Wednesday November 18, 2015 @04:35AM (#10586804)
It's a hack, but one that's relatively benign: allocate stack using malloc, move sp using variable-sized array.