*** Welcome to piglix ***

Halide (programming language)

Halide
Paradigm functional, parallel
Designed by Jonathan Ragan-Kelley and Andrew Adams
Developer MIT, (with help from Stanford and Adobe)
First appeared 2012
Typing discipline static
Implementation language C++
OS Mac OS X (10.6 through 10.8), mainstream Linux distributions, Windows
Website http://halide-lang.org/

Halide is a computer programming language designed for writing digital image processing code that takes advantage of memory locality, vectorized computation and multi-core CPUs and GPUs. Halide is implemented as an internal DSL in C++.

The main innovation Halide brings is the separation of the algorithm being implemented from its execution schedule, i.e. code specifying the loop nesting, parallelization, loop unrolling and vector instruction. These two are usually interleaved together and experimenting with changing the schedule requires the programmer to rewrite large portions of the algorithm with every change. With Halide, changing the schedule does not require any changes to the algorithm and this allows the programmer to experiment with scheduling and finding the most efficient one.

The following function defines and sets the schedule for a 3x3 box filter defined as a series of two 3x1 passes:



...
Wikipedia

...