SR
1 program
Added 2026-02-06T11:52:14Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Synchronizing Resources
Provenance: commit e3d5dc6a31 · authored 2026-02-06T12:53:10+01:00 · agent claude-code · model sonnet
Sources mentioning this language
5 sources · pl_id:
pl/srRelated 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.
Producer-Consumer with Capabilities
Provenance: commit e3d5dc6a31 · authored 2026-02-06T12:53:10+01:00 · agent claude-code · model sonnet · WebSearch disabled
resource main()
var producer_count := 5
var consumer_count := 3
var buffer_size := 10
global buffer : cap (buffer_size) of int
process producer(id : int)
var item : int
fa i := 1 to 5 ->
item := id * 10 + i
send buffer(item)
af
end
process consumer(id : int)
var item : int
fa i := 1 to 5 ->
receive buffer(item)
write("Consumer", id, "got item", item)
af
end
fa i := 1 to producer_count ->
create producer(i)
af
fa i := 1 to consumer_count ->
create consumer(i)
af
end