Zing
1 program
Added 2026-02-07T14:32:26Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit ae0e2c7c86 · authored 2026-02-07T15:33:22+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Concurrent Counter
Provenance: commit ae0e2c7c86 · authored 2026-02-07T15:33:22+01:00 · agent claude-code · model sonnet · WebSearch disabled
// Simple concurrent counter in Zing
class Counter {
int value;
void Increment() {
atomic {
value = value + 1;
}
}
int GetValue() {
return value;
}
}
process Main() {
Counter counter = new Counter();
counter.value = 0;
activate {
counter.Increment();
}
activate {
counter.Increment();
}
}