Relay

A networking-first, async-by-default programming language with Python-like syntax and Node.js-style non-blocking semantics.

GitHub Quick Start

Async without await

sleep(2000, print("world"))
print("hello")

→ prints "hello" immediately, "world" after 2 seconds, no await keywords ever

Simple Web Server

app = WebApp()
server = WebServer()

@app.get("/")
fn index()
    return "hello world"

server.run(app)

Get Started

→ Requires Rust

git clone https://github.com/patx/relay-lang
cd relay-lang
cargo install --path .

relay examples/type_hint_validation.ry