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-algolWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: procedural · imperative · structured |
|---|---|
| Designed by | University of St Andrews University of Edinburgh · Ron Morrison · Pete Bailey · Fred Brown · Paul Cockshott · Ken Chisholm · Al Dearle |
| First appeared | 1983 |
| Influenced by | ALGOL 60 · S-algol |
| Implemented in | S-algol |
Related languages
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
! 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.)