Hostname: page-component-6766d58669-rxg44 Total loading time: 0 Render date: 2026-05-20T00:14:00.419Z Has data issue: false hasContentIssue false

Implementing a Library for Probabilistic Programming Using Non-strict Non-determinism

Published online by Cambridge University Press:  02 July 2019

SANDRA DYLUS*
Affiliation:
University of Kiel, Kiel, Germany (e-mail: sad@informatik.uni-kiel.de)
JAN CHRISTIANSEN
Affiliation:
Flensburg University of Applied Sciences, Flensburg, Germany (e-mail: jan.christiansen@hs-flensburg.de)
FINN TEEGEN
Affiliation:
University of Kiel, Kiel, Germany (e-mail: fte@informatik.uni-kiel.de)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

This paper presents PFLP, a library for probabilistic programming in the functional logic programming language Curry. It demonstrates how the concepts of a functional logic programming language support the implementation of a library for probabilistic programming. In fact, the paradigms of functional logic and probabilistic programming are closely connected. That is, language characteristics from one area exist in the other and vice versa. For example, the concepts of non-deterministic choice and call-time choice as known from functional logic programming are related to and coincide with stochastic memoization and probabilistic choice in probabilistic programming, respectively. We will further see that an implementation based on the concepts of functional logic programming can have benefits with respect to performance compared to a standard list-based implementation and can even compete with full-blown probabilistic programming languages, which we illustrate by several benchmarks.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© The Author(s), 2019. Published by Cambridge University Press