Description #
Rholang is a concurrent, functional programming language designed for blockchain smart contracts based on the rho-calculus.
History #
Developed as part of the RChain project starting in 2015, Rholang combines process calculus and functional programming to enable secure, composable smart contracts.
Hello World Code #
new stdout in {
stdout!("Hello, World!")
}
How to Run #
Option 1: Online
Rholang Playground
Option 2: Local
- Install RChain node and tools:
https://docs.rchain.coop/en/rholang/ - Run code via rnode CLI
Key Concepts #
- Functional and concurrent language
- Based on rho-calculus process calculus
- Smart contracts and blockchain focus
- Immutable data structures
- Pattern matching
- Namespaces and scoping
- Message passing concurrency
- Deterministic execution
- Secure composability
- Typed with formal verification aims
Try It Online #
https://playground.rchain.coop
Fun Facts #
- Rholang treats smart contracts as processes communicating via channels.
- It’s designed to avoid common blockchain security issues like reentrancy.
- RChain aims to be a scalable platform for decentralized applications.