The Oxide Programming Language

Oxide is an alternative syntax for Rust that compiles to identical binaries via the Rust toolchain. It keeps Rust's performance, safety, and ecosystem while offering a more approachable, Swift/Kotlin-inspired surface syntax.

This book teaches Oxide from first principles. If you already know Rust, you will recognize the concepts and semantics, but the syntax will feel different. If you are new to systems programming, this book is designed to be friendly, incremental, and practical.

What You Will Learn

  • The core language constructs: variables, types, functions, and control flow
  • Ownership, borrowing, and lifetimes (the same rules as Rust)
  • Structs, enums, pattern matching, and traits
  • Error handling with Result, ?, and Oxide's nullability operators
  • Modules, packages, and the Cargo build system
  • Concurrency and async programming
  • How to build real programs in Oxide

How to Use This Book

The chapters build on each other. Follow them in order if you are new to Rust or systems programming. If you are experienced, you can jump to the chapters you care about most.

Throughout the book, you will see Oxide examples and occasional Rust equivalents to highlight syntax differences. The semantics are the same unless explicitly stated otherwise.