Rye is a very high-level, function-centric language with no keywords, strict state handling, and rich failure values - designed for predictable, composable programs and interactive use. Rye is a programming and interaction language. It is written in memory-safe Go and has first-class tasks for concurrent work.
Rye is shaped by a small number of principles rather than a large bag of features. These determine how the language behaves and why it feels different.
All constructs - control flow, assignment, I/O - return a value. Code composes linearly with the pipe, op and dot-words, reducing intermediate state and variable noise.
Rye has no keywords and no special forms. if, loop, fn, try, return are all built-in functions, just like print - meaning you can inspect, replace, or build your own.
Words defined with : are constants and cannot be redefined. Mutation requires a mod-word ::, which is visually explicit and intentionally costly. Rare
functions that mutate end with !
Functions return a value or a Failure. Failures carry a message, type, and status code. Unhandled failures escalate to errors, forcing resolution before they cause invisible bugs.
Rye code is made of Rye values. Blocks of code can be passed, stored, combined, and introspected - without a macro system or eval quirks.
You cannot modify variables in outer or nested scopes directly. Mutation across scopes requires explicit functions ending in !, making side effects visible and intentional.
Tasks add explicit completion and outcomes on top of goroutines and channels. The task API is currently experimental; use channels and mutexes to coordinate shared mutable data.
Rye compiles to a single binary. Go libraries integrate seamlessly - Rye can embed or extend any Go program as a scripting or config language.
Rye is implemented in Go, so programs inherit garbage collection and memory safety: no manual memory management, no dangling pointers, no pointer arithmetic or buffer overruns. Bad memory access is not part of the Rye programming model.
spawn, spawn-with, await, await-all and with-tasks give concurrent work an explicit outcome. The task runtime owns completion, so there is no counter to increment too late or done call to forget. Currently experimental.
Syntax highlighting, history, tab completion, and environment exploration tools are built into the REPL. Designed for iterative development.
Validation, CLI, Math, SQL, and HTML dialects are built-in. The same code-as-data foundation lets you build your own domain-specific languages.
HTTP servers, SMTP, SQL databases, tables, HTML/XML, Markdown and more ship in the main binary. Larger integrations are opt-in with build tags and Go extensions.
Rye runs on Linux, macOS, and Windows. Also available for WASM (browser), Docker, Alpine, Android, and iOS.
| Platform | x86 64-bit | ARM 64-bit | WASM |
|---|---|---|---|
| Linux v0.2.62 | ↓ download | ↓ download | ↓ wasm |
| macOS v0.2.62 | ↓ download | ↓ download | =/= |
| Windows v0.2.62 | ↓ download | / | =/= |
brew install ryelang
yay -S ryelang
docker pull ghcr.io/refaktor/rye:latest
Building from source is straightforward with Go. See the README on GitHub for instructions.