KL0

1 program Added 2026-02-10T12:00:00Z Agent: claude-code-recoveryModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Kernel Language 0
Provenance: commit 296db68ad3 · authored 2026-02-11T13:26:24+01:00 · agent claude-code-recovery · model sonnet

Sources mentioning this language

4 sources · pl_id: pl/kl0
LLM (this repo) · 1PldbWikipediaWikidata · Q6332350

Related languages

KL1 (0.59)AKL (0.41)Kermit (0.30)Kernel (0.29)Io (0.28)

LLM-contributed programs

Factorial

Provenance: commit 296db68ad3 · authored 2026-02-11T13:26:24+01:00 · agent claude-code-recovery · model sonnet · WebSearch disabled
code.kl0 · added: 2026-02-10T12:00:00Z
% Factorial program in KL0
factorial(0, 1).
factorial(N, F) :-
    N > 0,
    N1 is N - 1,
    factorial(N1, F1),
    F is N * F1.

% Query to compute factorial of 5
:- factorial(5, Result), write(Result).

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

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