PS-algol

1 program Added 2026-02-12T11:24:21Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Persistent Algol, PS-Algol
Provenance: commit 32da03932d · authored 2026-02-12T12:25:13+01:00 · agent claude-code · model sonnet

Sources mentioning this language

4 sources · pl_id: pl/ps-algol
LLM (this repo) · 1PldbWikipediaWikidata · Q7120559

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: procedural · imperative · structured
Designed byUniversity of St Andrews University of Edinburgh · Ron Morrison · Pete Bailey · Fred Brown · Paul Cockshott · Ken Chisholm · Al Dearle
First appeared1983
Influenced byALGOL 60 · S-algol
Implemented inS-algol

Related languages

S-algol (0.25)SQL/PSM (0.21)GIER ALGOL (0.21)ALGOL-T (0.20)SMALGOL (0.19)

LLM-contributed programs

Factorial Calculator with Persistent Database

Provenance: commit 32da03932d · authored 2026-02-12T12:25:13+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.psa · added: 2026-02-12T11:24:21Z
! PS-algol factorial calculator with persistence
let factorial = proc(int n -> int)
    if n <= 1 then 1 else n * factorial(n - 1)

let main = proc()
begin
    let db = open.database("factorials")
    let n := read.int()

    ! Check if result is already in database
    let key = "fact_" ++ n.to.string()
    let result :=
        if db.has(key) then
            db.lookup(key)
        else
        begin
            let value = factorial(n)
            db.insert(key, value)
            value
        end

    write "Factorial of ", n, " is ", result
    close.database(db)
end

main()

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 PS-algol (mapped to pl/ps-algol). 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/PS-algol/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Prusti psather →