Hacker News new | past | comments | ask | show | jobs | submit login

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.



It's a hack, but one that's relatively benign: allocate stack using malloc, move sp using variable-sized array.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: