KL1

1 program Added 2026-02-10T18:57:01Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Kernel Language 1
Provenance: commit 02c8b1a5d1 · authored 2026-02-10T19:57:47+01:00 · agent claude-code · model sonnet

Sources mentioning this language

5 sources · pl_id: pl/kl1
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q5965507

Related languages

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

LLM-contributed programs

Fibonacci Concurrent Computation

Provenance: commit 02c8b1a5d1 · authored 2026-02-10T19:57:47+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.kl1 · added: 2026-02-10T18:57:01Z
% Fibonacci computation using KL1 concurrent logic programming
% This program computes Fibonacci numbers using parallel streams

fib(0, 1) :- true.
fib(1, 1) :- true.
fib(N, F) :-
    N > 1,
    N1 := N - 1,
    N2 := N - 2,
    fib(N1, F1) & fib(N2, F2),
    F := F1 + F2.

% Main goal to compute fib(10)
:- fib(10, 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 KL1 (mapped to pl/kl1). 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/KL1/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← KL0 Klaim →