SETL

1 program Added 2025-10-23T15:14:12Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 9a0587d9e4 · authored 2025-10-23T17:14:12+02:00 · model google/gemini-2.5-pro

Sources mentioning this language

5 sources · pl_id: pl/setl
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q2205923

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: imperative · procedural · structured · object-oriented
Typingdynamic
Designed byCourant Institute of Mathematical Sciences · (Jack) Jacob T. Schwartz
First appeared1969
Influenced byALGOL 60
Homepagehttp://setl.org

Related languages

SETL2 (0.42)SETUN (0.30)Setanta (0.25)SenseTalk (0.21)SequenceL (0.21)

LLM-contributed programs

N-queens problem solver

Provenance: commit 9a0587d9e4 · authored 2025-10-23T17:14:12+02:00 · model google/gemini-2.5-pro · Temp 0.4
code.setl · license: GNU Free Documentation License 1.2 · added: 2025-10-23T15:14:12Z
proc queens(n);
  count := 0;
  cols := {};
  diag1 := {};
  diag2 := {};

  proc solve(y);
    if y > n then
      count := count + 1;
    else
      for x in {1..n} - cols loop
        if not (x+y in diag1 or x-y in diag2) then
          cols with:= x;
          diag1 with:= x+y;
          diag2 with:= x-y;
          solve(y+1);
          cols less:= x;
          diag1 less:= x+y;
          diag2 less:= x-y;
        end if;
      end loop;
    end if;
  end proc;

  solve(1);
  return count;
end proc;

for n in [1..10] loop
  print(n, queens(n));
end loop;

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 SETL (mapped to pl/setl). 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/SETL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← SetGoto SETL2 →