Overview

Using Rye*

Rye binary tries to not be just a language runtime, but a useful tool. The console also tries to be more than just REPL, but also place where you can explore and introspect tha language and your ideas.

Rye binary*

An growing list of simple GUI examples.

Console*

You can use Rye console, to evaluate Rye code. But Rye has some specific functions that usually aren’t used in normal Rye programming, but can be very handy in the console. For one thing, the console helps you explore the Rye environment.

Rye environment is formed by Words and words come in Contexts. You can navigate, list, use and modify contexts and assign words.

Entering Rye console

When you enter a console in a usual way by calling rye for example, a new Context is created and the parent context of it is the context where all the Builtins are defined.

CLI Flags Galore*

Rye Command Line Flags Galore

Rye is a versatile programming language with a rich set of command line flags that can be combined in various ways to enhance your development experience. This guide explores the many flags available in Rye and demonstrates how they can be used together to solve different problems.

Basic Command Line Flags

Flag Description
-do <code> Evaluates Rye code after loading a file or last save
-sdo <code> Same as -do but in silent mode (doesn’t display return values)
-lang <dialect> Select a dialect/language (rye, eyr, math)
-ctx <context> Enter a specific context or context chain
-silent Console doesn’t display return values
-stin <mode> Inject first value from stdin (modes: no, all, a)
-console Enters console after a file is evaluated
-dual Starts REPL in dual-mode with two parallel panels
-template Process file as a template, evaluating Rye code in {{ }} blocks
-help Displays help message
Flag Description
-seccomp-profile <profile> Seccomp profile to use: strict, readonly
-seccomp-action <action> Action on restricted syscalls: errno, kill, trap, log

Command Patterns

Rye supports several command patterns: