Breaking the Negative Cycle: Exploring the Design Space of Stratification for First-Class Datalog Constraints

Publikation: Bidrag til bog/antologi/rapport/proceedingKonferencebidrag i proceedingsForskningpeer review

1 Citationer (Scopus)

Abstract

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.

OriginalsprogEngelsk
Titel37th European Conference on Object-Oriented Programming, ECOOP 2023
RedaktørerKarim Ali, Guido Salvaneschi
ForlagDagstuhl Publishing
Publikationsdatojul. 2023
Artikelnummer31
ISBN (Elektronisk)9783959772815
DOI
StatusUdgivet - jul. 2023
Begivenhed37th European Conference on Object-Oriented Programming, ECOOP 2023 - Seattle, USA
Varighed: 17 jul. 202321 jul. 2023

Konference

Konference37th European Conference on Object-Oriented Programming, ECOOP 2023
Land/OmrådeUSA
BySeattle
Periode17/07/202321/07/2023
NavnLeibniz International Proceedings in Informatics, LIPIcs
Vol/bind263
ISSN1868-8969

Fingeraftryk

Dyk ned i forskningsemnerne om 'Breaking the Negative Cycle: Exploring the Design Space of Stratification for First-Class Datalog Constraints'. Sammen danner de et unikt fingeraftryk.
  • Safety in Types and Effects

    Starup, J. L., 9 dec. 2025, 177 s.

    Publikation: Typer af afhandlingPh.d.-afhandling

Citationsformater