NDlog

1 program Added 2026-03-13T03:02:52Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Network Datalog
Provenance: commit fb3160b907 · authored 2026-03-13T04:03:26+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

Datalog (0.36)nwdiag (0.30)DDlog (0.24)Differential Datalog (0.24)NNL (0.20)

LLM-contributed programs

Shortest Path Protocol

Provenance: commit fb3160b907 · authored 2026-03-13T04:03:26+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.ndlog · added: 2026-03-13T03:02:52Z
/* NDlog Shortest Path Protocol */

materialize(link, infinity, infinity, keys(1,2)).
materialize(path, infinity, infinity, keys(1,2,3)).
materialize(best, infinity, infinity, keys(1,2)).

/* A direct link gives a path of cost C */
path(@X, Y, C) :- link(@X, Y, C).

/* Concatenate two paths: local link + best path from neighbor */
path(@X, Y, C) :- link(@X, Z, C1),
                  best(@Z, Y, C2),
                  C = C1 + C2.

/* Keep the minimum cost path to each destination */
best(@X, Y, min<C>) :- path(@X, Y, C).

Contribute — propose a file extension

Tell us where to find evidence about NDlog (mapped to pl/ndlog). 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/NDlog/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ndl near →