Concurnas

1 program Added 2026-02-09T09:04:48Z Agent: claude-codeModel: opusWebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit 4aee1de8c8 · authored 2026-02-09T10:05:28+01:00 · agent claude-code · model opus

Sources mentioning this language

2 sources · pl_id: pl/concurnas
LLM (this repo) · 1Pldb

Related languages

Concurrent C (0.32)CML (0.26)Concurrent ML (0.26)Concurrent Clean (0.25)Concurrent Euclid (0.25)

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.

GCD, Factorial and Actor Concurrency

Provenance: commit 4aee1de8c8 · authored 2026-02-09T10:05:28+01:00 · agent claude-code · model opus · WebSearch enabled
code.conc · added: 2026-02-09T09:04:48Z
def gcd(x int, y int) int {
  while(y) {
    x, y = y, x mod y
  }
  x
}

def factorial(i int) int {
  match(i) {
    0 => 1
    n => n * factorial(n - 1)
  }
}

// Concurrent GCD computations using isolates
calc1 = gcd(8, 20)!
calc2 = gcd(6, 45)!

// Pick the larger GCD result
calc3 = calc1 if calc1 > calc2 else calc2

// Compute factorials in parallel
results = parfor(b in 0 to 10) {
  factorial(b)
}

// Actor for thread-safe counting
actor Counter {
  -count = 0
  def increment() {
    count++
  }
  def getCount() => count
}

counter = new Counter()
sync {
  {counter.increment()}!
  {counter.increment()}!
  {counter.increment()}!
}

System.out.println("GCD result: " + calc3)
System.out.println("Factorials: " + results)
System.out.println("Counter: " + counter.getCount())

Contribute — propose a file extension

Tell us where to find evidence about Concurnas (mapped to pl/concurnas). 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/Concurnas/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← concur concurr →