Chapter 1
Getting Started
Welcome to The Blyx Programming Language. Blyx is a systems programming language designed for the AI era — memory-safe, GPU-native, and actor-concurrent. This chapter gets you up and running with your first Blyx program.
1.1 Installation
The recommended way to install Blyx is through blyxup, the official toolchain installer. It manages stable, beta, and nightly releases and handles updates automatically.
On Linux and macOS
Open a terminal and run:
curl -sSf https://blyx-lang.space/install.sh | sh
This downloads and runs the installer, which installs blyxup, blyxc (the compiler), and blyxpkg (the package manager) to ~/.blyx/bin.
Add Blyx to your PATH:
export PATH="$PATH:$HOME/.blyx/bin"
1.2 Hello, World!
Create a new file called main.blyx and write:
// main.blyx
fn main() {
println!("Hello, World from Blyx!");
}
Compile and run with blyxc main.blyx -o hello && ./hello.