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/sr
LLM (this repo) · 1PldbWikipediaEsolangWikidata · Q446168

Related languages

JR (0.24)LucidSynchrone (0.17)SMIL (0.14)Lucid Synchrone (0.14)SourcePawn (0.13)

LLM-contributed programs

Producer-Consumer with Capabilities

Provenance: commit e3d5dc6a31 · authored 2026-02-06T12:53:10+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.sr · added: 2026-02-06T11:52:14Z
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

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 SR (mapped to pl/sr). 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/SR/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← squrl sr-programming-language →