Learn Rue
Welcome to the Rue tutorial. It teaches the language as it exists today, from your first program to a small real one split across files and covered by tests.
Rue is an early-stage compiled language exploring memory safety without a garbage collector and without lifetime annotations. It is not ready for real projects yet. If you are curious about where it is headed, this tutorial shows you what works now and is honest about what does not.
Every program in this tutorial is compiled, and most are also run, against the current compiler as part of the project's test suite. If something here does not work for you, that is a bug: please file it.
Chapters
- Why Rue
- Getting Started
- Hello, World
- Values and Types
- Functions and Control Flow
- Structs and Methods
- Enums and Matching
- Ownership and Access Modes
- Arrays, Slices, and Buffers
- Strings and Text
- Errors and Traps
- Modules and the Standard Library
- Tests
- Project: A Calculator
- Project: Modules and Tests
- What's Next