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/concurnasRelated 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.
GCD, Factorial and Actor Concurrency
Provenance: commit 4aee1de8c8 · authored 2026-02-09T10:05:28+01:00 · agent claude-code · model opus · WebSearch enabled
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())