Rholang

1 program Added 2025-10-22T15:26:46Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: rho-calculus
Provenance: commit 7cf29894a8 · authored 2025-10-22T17:26:47+02:00 · model anthropic/claude-3.5-sonnet

Sources mentioning this language

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

Related languages

CCS (0.18)Binary Lambda Calculus (0.17)Rhovas (0.17)Go (0.15)rk (0.15)

LLM-contributed programs

Simple Counter Contract

Provenance: commit 7cf29894a8 · authored 2025-10-22T17:26:47+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.rho · license: Apache-2.0 · added: 2025-10-22T15:26:46Z
contract @"BasicWallet"(@init, return) = {
  new balanceStore in {
    match init {
      Int => {
        @"stdout"!("Initial balance is ${init}")
        |
        balanceStore!(init)
        |
        contract @[*return, "deposit"](@amount, depositReturnCh) = {
          new resultCh in {
            for (@balance <- balanceStore) {
              match amount {
                Int => {
                  balanceStore!(balance + amount)
                  |
                  depositReturnCh!(true)
                }
                _ => {
                  balanceStore!(balance)
                  |
                  depositReturnCh!(false)
                }
              }
            }
          }
        }
      }
    }
  }
}

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 Rholang (mapped to pl/rholang). 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/Rholang/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Rhokell Rhombitrihexagonal →