3 ms·
Exactly that! Sorry if my comment came across like an insult. Wasn't intended as such. Maybe it was just me hoping to find a direct improvement of Tathams impl
by drakehutner 10y ago
Exactly that!
Sorry if my comment came across like an insult. Wasn't intended as such.
Maybe it was just me hoping to find a direct improvement of Tathams implementation. Which I would call "quirky" at best.
Your implementation seems to be much more "useable" and understandable in comparison.
After reading through more of your library I must say, I like it's style.
- fanf2 10y agoIt's worth noting that Tatham's coroutines are very widely deployed in PuTTY
- drakehutner 10y agoI believe Putty is part of the reason why they exists. Every author is able to employ his own mad creations (Speaking from experience here). I have never seen his coroutine someplace else with the single exception of the above mentioned contiki / protothreads.
- codr4life 10y agoNone of this is personal to me, I have no idea where the inspiration came from; I'm just trying to share the beauty I see in the concepts. So I get a bit frustrated with anything that steals focus from my mission, like history lessons. I don't really care who thought of what first. Sorry if that came across as hurt feelings, there is no conflict here. I'm glad you like the humble beginnings of the library I've always been wishing for :)
- drakehutner 10y agoThis makes your work even more interesting. I don't know if you read the original Mail [1] in which Tom Duff shared his Device, but at the end he's mentioning that he had an idea for something like coroutines: > It amazes me that after 10 years of writing C there are still little corners that I haven't explored fully. (Actually, I have another revolting way to use switches to implement interrupt driven state machines but it's too horrid to go into.) He later replied to Simon Tatham, that his coroutines actually where those "horrid" ideas. Obviously you must had some thoughts similar to those two. Kudos for that. You seem to to have a deep understanding of the concepts that make the C language (and how to twist them) ;). [1]: http://www.lysator.liu.se/c/duffs-device.html http://www.lysator.liu.se/c/duffs-device.html