Research output: Contribution to book/anthology/report/proceeding › Article in proceedings › Research › peer-review
Final published version
The λDat calculus brings together the power of functional and declarative logic programming in one language. In λDat, Datalog constraints are first-class values that can be constructed, passed around as arguments, returned, composed with other constraints, and solved. A significant part of the expressive power of Datalog comes from the use of negation. Stratified negation is a particularly simple and practical form of negation accessible to ordinary programmers. Stratification requires that Datalog programs must not use recursion through negation. For a Datalog program, this requirement is straightforward to check, but for a λDat program, it is not so simple: A λDat program constructs, composes, and solves Datalog programs at runtime. Hence stratification cannot readily be determined at compile-time. In this paper, we explore the design space of stratification for λDat. We investigate strategies to ensure, at compile-time, that programs constructed at runtime are guaranteed to be stratified, and we argue that previous design choices in the Flix programming language have been suboptimal.
Original language | English |
---|---|
Title of host publication | 37th European Conference on Object-Oriented Programming, ECOOP 2023 |
Editors | Karim Ali, Guido Salvaneschi |
Publisher | Dagstuhl Publishing |
Publication year | Jul 2023 |
Article number | 31 |
ISBN (electronic) | 9783959772815 |
DOIs | |
Publication status | Published - Jul 2023 |
Event | 37th European Conference on Object-Oriented Programming, ECOOP 2023 - Seattle, United States Duration: 17 Jul 2023 → 21 Jul 2023 |
Conference | 37th European Conference on Object-Oriented Programming, ECOOP 2023 |
---|---|
Land | United States |
By | Seattle |
Periode | 17/07/2023 → 21/07/2023 |
Series | Leibniz International Proceedings in Informatics, LIPIcs |
---|---|
Volume | 263 |
ISSN | 1868-8969 |
Publisher Copyright:
© Jonathan Lindegaard Starup, Magnus Madsen, and Ondřej Lhoták;
See relations at Aarhus University Citationformats
ID: 341391426