Domain-specific tensor languages

被引:0
|
作者
Bernardy, Jean-philippe [1 ,2 ]
Jansson, Patrik [1 ,2 ]
机构
[1] Chalmers Univ Technol, Gothenburg, Sweden
[2] Univ Gothenburg, Gothenburg, Sweden
关键词
D O I
10.1017/S0956796825000048
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The tensor notation used in several areas of mathematics is a useful one, but it is not widely available to the functional programming community. In a practical sense, the (embedded) domain-specific languages (dsls) that are currently in use for tensor algebra are either 1. array-oriented languages that do not enforce or take advantage of tensor properties and algebraic structure or 2. follow the categorical structure of tensors but require the programmer to manipulate tensors in an unwieldy point-free notation. A deeper issue is that for tensor calculus, the dominant pedagogical paradigm assumes an audience which is either comfortable with notational liberties which programmers cannot afford, or focus on the applied mathematics of tensors, largely leaving their linguistic aspects (behaviour of variable binding, syntax and semantics, etc.) for the reader to figure out by themselves. This state of affairs is hardly surprising, because, as we highlight, several properties of standard tensor notation are somewhat exotic from the perspective of lambda calculi. We bridge the gap by defining a dsl, embedded in Haskell, whose syntax closely captures the index notation for tensors in wide use in the literature. The semantics of this edsl is defined in terms of the algebraic structures which define tensors in their full generality. This way, we believe that our edsl can be used both as a tool for scientific computing, but also as a vehicle to express and present the theory and applications of tensors.
引用
收藏
页数:42
相关论文
共 50 条
  • [41] When and how to develop domain-specific languages
    Mernik, M
    Heering, J
    Sloane, AM
    ACM COMPUTING SURVEYS, 2005, 37 (04) : 316 - 344
  • [42] Domain-Specific Languages in a Customs Information System
    Freudenthal, Margus
    IEEE SOFTWARE, 2010, 27 (02) : 65 - 71
  • [43] A framework for qualitative assessment of domain-specific languages
    Gökhan Kahraman
    Semih Bilgen
    Software & Systems Modeling, 2015, 14 : 1505 - 1526
  • [44] JTS: Tools for implementing domain-specific languages
    Batory, D
    Lofaso, B
    Smaragdakis, Y
    FIFTH INTERNATIONAL CONFERENCE ON SOFTWARE REUSE - PROCEEDINGS, 1998, : 143 - 153
  • [45] Generating Version Convertors for Domain-Specific Languages
    de Geest, Gerardo
    Vermolen, Sander
    van Deursen, Arie
    Visser, Eelco
    FIFTEENTH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS, 2008, : 197 - 201
  • [46] A framework for qualitative assessment of domain-specific languages
    Kahraman, Gokhan
    Bilgen, Semih
    SOFTWARE AND SYSTEMS MODELING, 2015, 14 (04): : 1505 - 1526
  • [47] Heuristic Evaluation Checklist for Domain-specific Languages
    Poltronieri, Ildevana
    Zorzo, Avelino Francisco
    Bernardino, Maicon
    Medeiros, Bruno
    Campos, Marcia de Borba
    HUCAPP: PROCEEDINGS OF THE 16TH INTERNATIONAL JOINT CONFERENCE ON COMPUTER VISION, IMAGING AND COMPUTER GRAPHICS THEORY AND APPLICATIONS - VOL. 2: HUCAPP, 2021, : 37 - 48
  • [48] Describing Variability with Domain-Specific Languages and Models
    Tolvanen, Juha-Pekka
    Kelly, Steven
    SPLC'19: PROCEEDINGS OF THE 23RD INTERNATIONAL SYSTEMS AND SOFTWARE PRODUCT LINE CONFERENCE, VOL A, 2020, : 329 - 329
  • [49] Composition and Reuse with Compiled Domain-Specific Languages
    Sujeeth, Arvind K.
    Rompf, Tiark
    Brown, Kevin J.
    Lee, HyoukJoong
    Chafi, Hassan
    Popic, Victoria
    Wu, Michael
    Prokopec, Aleksandar
    Jovanovic, Vojin
    Odersky, Martin
    Olukotun, Kunle
    ECOOP 2013 - OBJECT-ORIENTED PROGRAMMING, 2013, 7920 : 52 - 78
  • [50] An approach for the systematic development of domain-specific languages
    Strembeck, Mark
    Zdun, Uwe
    SOFTWARE-PRACTICE & EXPERIENCE, 2009, 39 (15): : 1253 - 1292