Generic and Indexed Programming
Generic and Indexed Programming
复制标题
通用和索引编程
DOI:
10.1007/978-3-642-32202-0
复制
发表时间:
2012
期刊:
影响因子:
--
通讯作者:
J. Gibbons
中科院分区:
文献类型:
--
作者:
J. Gibbons
Generic programming is about making programs more widely applicable via exotic kinds of parametrization—not just along the dimensions of values or of types, but also of things such as the shape of data, algebraic structures, strategies, computational paradigms, and so on. Indexed programming is a lightweight form of dependently typed programming, constraining flexibility by allowing one to state and check relationships between parameters: that the shapes of two arguments agree, that an encoded value matches some type, that values transmitted along a channel conform to the stated protocol, and so on. The two forces of genericity and indexing balance each other nicely, simultaneously promoting and controlling generality. The Generic and Indexed Programming project at Oxford was funded by the UK Engineering and Physical Sciences Research Council over the period 2006–2010 to explore the interaction between these two forces. The closing activity of the project took the form of a