Y
Hacker News
new
|
ask
|
show
|
jobs
by
thomasjames
2485 days ago
I had only seen them in the context of userspace threading. I wonder what mainstream libs use them. Do you know of any?
1 comments
fucking_tragedy
2485 days ago
Generators are a subset of coroutines, and coroutines are useful in lexing and parsing.
link
thomasjames
2485 days ago
Whoops, I meant that use set/longjmp() to implement coroutines. My wording in retrospect was super unclear. Sorry!
link