Popr
1 program
Added 2026-03-04T12:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: PoprC
Provenance: commit edc785b8ef · authored 2026-03-04T23:20:39+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
2 sources · pl_id:
pl/poprRelated languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Numeric and List Module Definitions
Provenance: commit edc785b8ef · authored 2026-03-04T23:20:39+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
module num:
imports:
module stack
module control
__ max of two values
max: [] ap20 dup . dup tail | [<= !] . popr nip
__ min of two values
min: [] ap20 dup . dup tail | [> !] . popr nip
__ is argument odd?
odd: 1 &b 1 ==
even: 1 &b 0 ==
bound: [dup_under >= !] dip21 dup_under <= !
up_to: 0 swap bound
module list:
imports:
module control
module stack
module logic
__ take rightmost value from quote
head: popr nip
top: dup head
__ return the length of a list
length:
[0 swap] pushl
[[[1+] [tail] para] .]
[popr popr valid]
iterate tail head