Overlog

1 program Added 2026-03-06T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: OverLog, P2 Overlog
Provenance: commit d49bd6cca9 · authored 2026-03-06T02:10:23+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Erlog (0.31)Parlog (0.28)Oblog (0.24)Overtone (0.20)ProbLog (0.20)

LLM-contributed programs

Shortest Path Routing

Provenance: commit d49bd6cca9 · authored 2026-03-06T02:10:23+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.olg · added: 2026-03-06T10:00:00Z
/* Overlog: Shortest Path Routing
 * Classic declarative networking example from the P2 system.
 * Based on: B.T. Loo et al., "Declarative Networking", CACM 2009.
 */

/* Table declarations */
materialize(link, infinity, infinity, keys(1,2)).
materialize(path, infinity, infinity, keys(1,2,3)).
materialize(bestPath, infinity, infinity, keys(1,2)).

/* Base case: a direct link is a path */
path(@Src, Dst, Cost) :-
  link(@Src, Dst, Cost).

/* Inductive case: extend a path through an intermediate node */
path(@Src, Dst, Cost) :-
  link(@Src, Next, Cost1),
  path(@Next, Dst, Cost2),
  Cost := Cost1 + Cost2.

/* Keep only the shortest (minimum cost) path to each destination */
bestPath(@Src, Dst, min<Cost>) :-
  path(@Src, Dst, Cost).

Contribute — propose a file extension

Tell us where to find evidence about Overlog (mapped to pl/overlog). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Overlog/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Overload OverLoop →