Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
andreasgonewild
on Nov 12, 2017
|
parent
|
context
|
favorite
| on:
Tom Duff on Duff's device (1988)
Been there, done that :) It's a neat trick, but the issue for me is that you still need to pass a separate struct for state which breaks the illusion enough that you might as well just write an ordinary iterator.
kindfellow92
on Nov 12, 2017
|
next
[–]
I agree. If you want user-level threading, just use a stack swapping library like libpth.
kosma
on Nov 12, 2017
|
prev
[–]
Most well-written portable interrupt code needs to pass an explicit context anyway, so... it's not as bad as it sounds.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: