A Pipe to the Future

Peter William Lount peter at smalltalk.org
Thu Sep 6 00:02:07 UTC 2007


Hi,

I am wondering if the following would be possible and if so how?

aProcess := [ "a block that pumps out continuous values"] fork.
bProcess := [:in | in someOperation ] fork.

"pipe the results of process a into process b like in unix shell"
aProcess asPipeInto: bProcess.

or

aProcess | bProcess

Would a shared queue be needed? Or some other concurrency control 
mechanism for sharing the output results.

Unfortunately blocks don't pump out multiple values... or fortunately 
they don't.

Just a thought.

Cheers,

Peter





More information about the Squeak-dev mailing list