Tech News
← Back to articles

Global key-value metadata storage for Scryer Prolog

read original related products more articles

environment

A global environment/context management system for Scryer Prolog providing key-value metadata storage one level of abstraction above the blackboard.

Purpose

This library provides a clean interface for managing global state in Prolog programs using association trees (AVL trees) backed by the blackboard. It offers:

Global persistent storage - Changes persist across backtracking

- Changes persist across backtracking Backtrackable local storage - Changes roll back on backtracking

- Changes roll back on backtracking Type-safe reified predicates - Use if_/3 for conditional logic without cuts

- Use for conditional logic without cuts Once-only initialization - Prevent accidental double initialization

- Prevent accidental double initialization Key existence checking - Efficiently check for key presence

Installation

... continue reading