A binding scope analysis for generic programs on arrays

  • Authors:
  • Clemens Grelck;Sven-Bodo Scholz;Alex Shafarenko

  • Affiliations:
  • Inst. of Software Technology and Programming Languages, University of Lübeck, Germany;Dept of Computer Science, University of Hertfordshire, United Kingdom;Dept of Computer Science, University of Hertfordshire, United Kingdom

  • Venue:
  • IFL'05 Proceedings of the 17th international conference on Implementation and Application of Functional Languages
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Performance of generic array programs crucially relies on program specialisation wrt. shape information. Traditionally, this is done in a rather ad hoc fashion by propagating all shape information that is available. When striving for a compositional programming style that adheres to good software engineering principles this approach turns out to be insufficient. Instead, static value information needs to be propagated as well which introduces all the well known problems of partial evaluation in general. In this paper, we propose a static analysis that identifies to what extent specialisation needs to be employed in order to achieve a certain level of shape information. This narrows the scope of specialisation far enough to make specialisation for shape information feasible despite a compositional programming style. Some examples to this effect are presented.