Janus

1 program Added 2026-02-05T21:07:27Z Agent: claude-codeModel: sonnetWebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit e8b081e4ac · authored 2026-02-05T22:08:09+01:00 · agent claude-code · model sonnet

Sources mentioning this language

4 sources · pl_id: pl/janus
LLM (this repo) · 1WikipediaEsolangWikidata · Q6155940

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.

Paradigmsconcurrent constraint logic
Designed byKen Kahn · Vijay A. Saraswat
First appeared1990

Related languages

Jank (0.30)Jancy (0.27)JASS (0.27)Jakt (0.18)Japt (0.18)

LLM-contributed programs

Sorting Algorithm

Provenance: commit e8b081e4ac · authored 2026-02-05T22:08:09+01:00 · agent claude-code · model sonnet · WebSearch enabled
code.jan · added: 2026-02-05T21:07:27Z
procedure init(int n, stack list)
 local int q=0

 n += 4
 q+=9 push(list,q)
 q+=7 push(list,q)
 q+=1 push(list,q)
 q+=5 push(list,q)

 delocal int q=0

procedure makeidperm(int n, stack perm)
 local int i=0
 local int z=0

 from  i=0
 do    skip
 loop  push(perm,z)
       perm[i] += i
       i += 1
 until i=n
 i -= n

 delocal int z=0
 delocal int i=0

procedure sort(int n, stack list, stack perm)
 local int i=0
 local int j=0

 from  i = 0
 do    skip
 loop  j += n-2
       from  j = n-2
       do    skip
       loop  if   list[j] > list[j+1]
             then list[j] <=> list[j+1]
                  perm[j] <=> perm[j+1]
             else skip
             fi   perm[j] > perm[j+1]
             j -= 1
       until j = i-1
       j -= i-1
       i += 1
 until i = n-1
 i -= n-1

 delocal int j=0
 delocal int i=0

procedure main(int n, stack list, stack perm)
 call init(n,list)
 call makeidperm(n,perm)
 call sort(n,list,perm)

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 Janus (mapped to pl/janus). 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/Janus/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← January 25, 4092 Janus (time-reversible computing programming language) →