top | item 39505854

(no title)

esfandia | 2 years ago

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."

discuss

order

whiterknight|2 years ago

Thanks. I have read this article a few times and somehow missed that was acknowledged.

“Heavyweight” is where I disagree. It’s exactly whats needed to be able to write sequential code on each side.