# Introduction to Rell · Chromia Docs (concept)

> This section covers the advantages of Rell and its position within the Chromia platform.

Source: https://docs.chromia.com/rell/rell-intro/

# Introduction to Rell

On this page

* [Rell language](#rell-language)
* [Features that empower developers](#features-that-empower-developers)
* [Rell structure](#rell-structure)

This section covers the advantages of [Rell](https://docs.chromia.com/reference/terminology/#rell) and its position within the Chromia platform.

info

You can read Rell's release notes on the [Rell releases page](https://docs.chromia.com/rell/releases/).

Try Rell in your browser

Want to experiment without installing anything? Write and run Rell code directly in the
[Rell Playground](https://docs.chromia.com/playground/). Runnable snippets throughout these docs carry an **Open in playground** button
that opens them there — like this one:

Rell

```
function greet(name: text) = "Hello, " + name + "!";

print(greet("Rell"));
```

## Rell language

Most [dapp](https://docs.chromia.com/reference/terminology/#decentralized-application-dapp)
[blockchain](https://docs.chromia.com/reference/terminology/#blockchain) platforms use virtual machines of various kinds. But a traditional
virtual machine architecture doesn't work very well with the Chromia relational data model, as we need a way to encode
queries and operations. For this reason, ChromaWay is taking a more language-centric approach: a newly developed
language called Rell (Relational language) that's used for dapp programming.

This language allows programmers to describe the data model/schema, queries, and procedural app code. When the Rell code
compiles, the system translates it into SQL (while ensuring that this translation is safe), and then executes it.

### Features that empower developers

* **Type safety**: Rell is completely type-safe, ensuring that types returned by queries match those used in procedural
  code. This minimizes errors and safeguards against financial losses.
* **Safety first**: Arithmetic operations are protected against overflows, and explicit authorization checks are
  mandatory. This safety-first approach provides developers with confidence and peace of mind.
* **Concise and expressive**: Rell doesn't have the unnecessary verbosity of SQL, focusing on conveying essential
  details with clarity and precision. Data definition tasks become up to 7 times more compact, boosting developer
  productivity.
* **Meta-programming power**: Rell allows you to bundle features as reusable templates. This empowers you to eliminate
  repetitive code and accelerate development.

Our research indicated that no existing language or environment has this feature set, and thus, the development of a new
language was necessary. We designed Rell in such a way that it's easy to learn for programmers:

* Programmers can use relational programming idioms they're already familiar with. However, they don't have to go out of
  their way to express everything through relational algebra: Rell can seamlessly merge relational constructs with
  procedural programming.
* The language is deliberately similar to modern programming languages like JavaScript and Kotlin. A familiar language
  is easier to adapt to, and our internal tests show that programmers can become proficient in Rell in a matter of days.
  In contrast, the ALGOL-style syntax of PL/SQL generally needs to be more intuitive to modern developers.

## Rell structure

As mentioned, Rell is a language designed for relational blockchain programming. The structure of a decentralized app
built in Rell looks something like this:

![rell structure](https://docs.chromia.com/img/Rell_structure_LM_C.svg)

The end user communicates with the client, sending transactions to Rell using a postchain client.

[View this page on docs.chromia.com](https://docs.chromia.com/rell/rell-intro/)Content mirrored from the live docs
