Welcome to the Tour of Lux
This tour will teach you the Lux programming language step by step. Each lesson includes editable code examples that you can run directly in your browser.
What You'll Learn
Basics (1-5)
- Hello World - Your first Lux program
- Values & Types - Int, Float, String, Bool
- Functions - Defining and calling functions
- Custom Types - Records and variants
- Pattern Matching - Destructuring data
Effects (6-9)
- Effects: The Basics - What makes Lux special
- Using Multiple Effects - Composition
- Custom Handlers - Control behavior
- Testing with Effects - No mocks needed
Advanced (10-12)
- Modules - Organizing code
- Behavioral Types - Compiler guarantees
- Compilation - Native performance
Prerequisites
This tour assumes basic programming experience. If you know any language (JavaScript, Python, Java, etc.), you're ready to learn Lux.
How It Works
- Each lesson has editable code - try changing it!
- Click Run to execute the code
- Use Ctrl+Enter as a keyboard shortcut
- Navigate with the dropdown or prev/next buttons