User-Defined Shape Constraints in SAC

Open Access
Authors
Publication date 2013
Book title The 25th Symposium on Implementation and Application of Functional Languages (IFL 2013)
Event 25th International Symposium on Implementation and Application of Functional Languages (IFL'13}, Nijmegen, Netherlands
Publisher Nijmegen: Radboud University
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract
We propose a method called user-defined constraints specifically for shape-generic multi-dimensional array programming. Our proposed technique allows programmers to make implicit constraints in the domain and codomain of functions explicit. This method can help compilers to generate more reliable code, improve performance through better optimization and improve software documentation.
We propose and motivate a syntax extension for the functional array language SAC and describe steps to systematically transform source-level constraints into existing intermediate code representations. We discuss ways of statically resolving constraints through aggressive partial evaluation and propose some form of syntactic sugar that blurs the line between user-defined constraints and fullyfledged dependent types.
Document type Conference contribution
Language English
Published at http://www.cs.ru.nl/P.Achten/IFL2013/symposium_proceedings_IFL2013/ifl2013_submission_2.pdf
Downloads
ifl2013_submission_2 (Accepted author manuscript)
Permalink to this page
Back