Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cryptonector
· 6y ago · 0 comments
You could use a Duff's device instead of computed labels, then you'd have a portable implementation.
Comments
[–]
electrum
6y ago
That same technique is used by
https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
[–]
cryptonector
OP
6y ago
Yes, quite! I mentioned that and async.h in issue #1. I also opened a PR with a Duff's device version.