The article says: "In many modern operating systems, you could do this using pipes between two processes or two threads. emit() in the decompressor writes to a pipe, and getchar() in the parser reads from the other end of the same pipe. Simple and robust, but also heavyweight and not portable. Typically you don't want to have to divide your program into threads for a task this simple."
whiterknight|2 years ago
“Heavyweight” is where I disagree. It’s exactly whats needed to be able to write sequential code on each side.