Efficient algebraic effect handlers for Prolog. Issue 5 (14th October 2016)
- Record Type:
- Journal Article
- Title:
- Efficient algebraic effect handlers for Prolog. Issue 5 (14th October 2016)
- Main Title:
- Efficient algebraic effect handlers for Prolog
- Authors:
- SALEH, AMR HANY
SCHRIJVERS, TOM - Editors:
- Carro, Manuel
King, Andy - Abstract:
- Abstract: Recent work has provided delimited control for Prolog to dynamically manipulate the program control-flow, and to implement a wide range of control-flow and dataflow effects on top of. Unfortunately, delimited control is a rather primitive language feature that is not easy to use. As a remedy, this work introduces algebraic effect handlers for Prolog, as a high-level and structured way of defining new side-effects in a modular fashion. We illustrate the expressive power of the feature and provide an implementation by means of elaboration into the delimited control primitives. The latter add a non-negligible performance overhead when used extensively. To address this issue, we present an optimised compilation approach that combines partial evaluation with dedicated rewrite rules. The rewrite rules are driven by a lightweight effect inference that analyses what effect operations may be called by a goal. We illustrate the effectiveness of this approach on a range of benchmarks.
- Is Part Of:
- Theory and practice of logic programming. Volume 16:Issue 5/6(2016)
- Journal:
- Theory and practice of logic programming
- Issue:
- Volume 16:Issue 5/6(2016)
- Issue Display:
- Volume 16, Issue 5/6 (2016)
- Year:
- 2016
- Volume:
- 16
- Issue:
- 5/6
- Issue Sort Value:
- 2016-0016-NaN-0000
- Page Start:
- 884
- Page End:
- 898
- Publication Date:
- 2016-10-14
- Subjects:
- delimited control, -- algebraic effect handlers, -- program transformation
Logic programming -- Periodicals
Artificial intelligence -- Computer programs -- Periodicals
Constraint programming (Computer science) -- Periodicals
005.115 - Journal URLs:
- https://www.cambridge.org/core/journals/theory-and-practice-of-logic-programming ↗
- DOI:
- 10.1017/S147106841600034X ↗
- Languages:
- English
- ISSNs:
- 1471-0684
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD Digital store
- Ingest File:
- 1789.xml