Chapter 5
Programs and Streams

Program objects in Sh contain records of sequences of operations on Sh types and a representation of Sh control constructs. They can be compiled to multiple compilation targets, combined with other program objects to create new program objects, applied to stream data, and loaded into GPU shader units. A number of built-in program object generators, called kernels and nibbles, are built into the Sh library. These can be combined with other kernels, nibbles, or user-defined programs to generate new programs.


Note: This manual is available as a bound book from AK Peters, including better formatting, in-depth examples, and about 200 pages not available on-line.