HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Separating shape and content

Categories: Idioms

An interesting programming technique in Haskell is to encode a data structure as two separate structures, one defining the shape of the overall data, and the other defining the content.

This is used, for one, in nested data parallelism, to distribute nested arrays as flat arrays + a shape descriptor across a network.

Ross Paterson has written a nice overview of the technique.

Retrieved from "http://www.haskell.org/haskellwiki/Separating_shape_and_content"

This page has been accessed 1,204 times. This page was last modified 01:34, 18 September 2006. Recent content is available under a simple permissive license.