Here is a link to a demonstration of using Unicon as a shell to load (specially 
written) Unicon programs for use in a "Unix pipe/filter paradigmatic" manner 
(i.e., the producer/consumer pattern).
 
http://eudyptula.freezope.org/unicon/dispatcher-demo.html
 
This is a work in progress. At the core of it is a (relatively untested) class 
named Stream that permits use of files, coexpressions, and queues via a common 
interface (mostly via Get and Put operations).
 
The output is essentially equivalent for
   dispatcher
and
   producer - | consumer - -
 
Using the MTIcon load( ) procedure, dispatcher collapses into a single process 
the interplay between three coexpressions, each of which is an instance of an 
Icon &main coexpression.

Reply via email to