News for hackers. Stuff that matters.
Re:A fun optimization trick from rsync by dimatura on Monday October 29, 2018 @07:05AM (#18326435)
Yes, it's basically the idea in Duff's device. Protothreads (http://dunkels.com/adam/pt/) uses a pretty similar trick.
Re:A fun optimization trick from rsync by repsilat on Monday October 29, 2018 @03:02PM (#18330246)
Ah, that's exactly the trick I was thinking of. I think I learned it from [1], but I'm pretty sure Protothreads predates that post. Thanks for the link!

1: https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html