Blyx v0.1.0-alpha is here! Read the release notes ->

Chapter 11 • Blyx Unique Feature

Actors & Concurrency

Blyx implements native actor model primitives. Actors isolate state and communicate exclusively via lock-free message channels, guaranteeing freedom from data races.

actor ComputeWorker {
    fn receive(msg: Message) {
        match msg {
            Task(id) => println!("Processing task {}", id),
        }
    }
}

fn main() {
    let worker = spawn ComputeWorker();
    worker.send(Task(42));
}
← Previous
Collections & Iterators
Next →
Tensors & AI